You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@shawnbot noticed that the TextInput component include an autofocus prop + attribute. I'm curious if there's a strong use case for needing this here, or if it would be ok to remove it? The reason being that autofocus can have negative a11y consequences as it disorients screen reader users without warning. From MDN:
Warning: Automatically focusing a form control can confuse visually-impaired people who using screen-reading technology. When autofocus is assigned, screen-readers "teleport" their user to the form control without warning them beforehand.
Additionally, only one element per page should have the autofocus attribute and we currently don't have any way of enforcing that.
@shawnbot noticed that the TextInput component include an
autofocus
prop + attribute. I'm curious if there's a strong use case for needing this here, or if it would be ok to remove it? The reason being thatautofocus
can have negative a11y consequences as it disorients screen reader users without warning. From MDN:Additionally, only one element per page should have the
autofocus
attribute and we currently don't have any way of enforcing that.Curious if there is a strong reason why we decided to add it? cc @jonrohan @shawnbot @broccolini
The text was updated successfully, but these errors were encountered: