From 698a4fab26f1d70af1106adddff757afa7873375 Mon Sep 17 00:00:00 2001 From: Gustavo Santos <53129852+gefgu@users.noreply.github.com> Date: Mon, 12 Sep 2022 08:29:23 -0300 Subject: [PATCH] GrafanaUI: Add required behavior to Inline Field (#54867) --- packages/grafana-ui/src/components/Forms/InlineField.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/grafana-ui/src/components/Forms/InlineField.tsx b/packages/grafana-ui/src/components/Forms/InlineField.tsx index 4e249d2b537..01f3fa3a257 100644 --- a/packages/grafana-ui/src/components/Forms/InlineField.tsx +++ b/packages/grafana-ui/src/components/Forms/InlineField.tsx @@ -37,6 +37,7 @@ export const InlineField: FC = ({ invalid, loading, disabled, + required, className, htmlFor, grow, @@ -59,7 +60,7 @@ export const InlineField: FC = ({ htmlFor={inputId} transparent={transparent} > - {label} + {`${label}${required ? ' *' : ''}`} ) : ( label