diff --git a/src-docs/src/views/form_controls/radio_group.js b/src-docs/src/views/form_controls/radio_group.js index b070fbd65ea..b73a5c49794 100644 --- a/src-docs/src/views/form_controls/radio_group.js +++ b/src-docs/src/views/form_controls/radio_group.js @@ -45,6 +45,10 @@ export default class extends Component { idSelected={this.state.radioIdSelected} onChange={this.onChange} name="radio group" + legend={{ + children: This is a legend for a radio group, + // display: 'hidden', + }} /> diff --git a/src/components/form/form_label/_form_label.scss b/src/components/form/form_label/_form_label.scss index 887d7de476c..14055e077af 100644 --- a/src/components/form/form_label/_form_label.scss +++ b/src/components/form/form_label/_form_label.scss @@ -2,11 +2,9 @@ * 1. Focused state overrides invalid state. */ .euiFormLabel { - @include euiFontSizeXS; + @include euiFormLabel; display: inline-block; transition: all $euiAnimSpeedFast $euiAnimSlightResistance; - color: $euiTitleColor; - font-weight: $euiFontWeightSemiBold; &.euiFormLabel-isInvalid { color: $euiColorDanger; /* 1 */ diff --git a/src/global_styling/mixins/_form.scss b/src/global_styling/mixins/_form.scss index 1aa4e831e1e..56b0e87bab1 100644 --- a/src/global_styling/mixins/_form.scss +++ b/src/global_styling/mixins/_form.scss @@ -1,3 +1,10 @@ +// Labels +@mixin euiFormLabel { + @include euiFontSizeXS; + color: $euiTitleColor; + font-weight: $euiFontWeightSemiBold; +} + @mixin euiFormControlLayoutPadding($numOfIcons, $side: 'right', $compressed: false) { $firstIconSize: $euiFormControlPadding + $euiSize + $euiFormControlPadding; $secondIconSize: $euiFormControlPadding + $euiSize;