diff --git a/src-docs/src/views/form_controls/form_controls_example.js b/src-docs/src/views/form_controls/form_controls_example.js index 380085b4c66..4c0059ffc31 100644 --- a/src-docs/src/views/form_controls/form_controls_example.js +++ b/src-docs/src/views/form_controls/form_controls_example.js @@ -189,7 +189,7 @@ export const FormControlsExample = {

- Placeholders should never replace a label but used as + Placeholders should never replace a label but used as a hint in addition to the label. Use the{' '} placeholder prop to describe the expected value of the input. diff --git a/src/components/form/validatable_control/validatable_control.tsx b/src/components/form/validatable_control/validatable_control.tsx index 343a0d43493..aebe7ce8301 100644 --- a/src/components/form/validatable_control/validatable_control.tsx +++ b/src/components/form/validatable_control/validatable_control.tsx @@ -80,5 +80,6 @@ export const EuiValidatableControl: FunctionComponent< return cloneElement(child, { ref: replacedRef, + 'aria-invalid': isInvalid, }); }; diff --git a/src/components/suggest/__snapshots__/suggest.test.tsx.snap b/src/components/suggest/__snapshots__/suggest.test.tsx.snap index 07cd34695a4..6db9bfaeab2 100644 --- a/src/components/suggest/__snapshots__/suggest.test.tsx.snap +++ b/src/components/suggest/__snapshots__/suggest.test.tsx.snap @@ -917,6 +917,7 @@ Array [