Setting error-visible
should also set aria-invalid
and potentially aria-errormessage
#2428
Labels
bug
Something isn't working
🐛 Bug Report
The
error-visible
attribute controls the presentational aspect of a component being in an error state. Besides the visual aspects of that presentation, it should also manage the ARIA attributes to communicate that accessibly.💁 Possible Solution
aria-invalid="true"
on the accessible element whenerror-visible
is set on the host elementerror-visible
is set anderror-text
is non-empty, setaria-errormessage
to theid
of the element with the error textaria-live
on the error text element🔦 Context
Came up during research for the required input feature. See #2425 (comment)
The text was updated successfully, but these errors were encountered: