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
[Accessibility] Adds support for an accessible "clear" button (#53)
If an element with <input-id>-clear is detected in the autocomplete, clicking that button will:
clear the associated input
focus back on the input (a11y)
announce that the input has been cleared (a11y)
While `input type="search"` comes with an `x` that clears the content of the field and refocuses it on many browsers, the implementation for this control is not keyboard accessible, and so we've opted to enable a customizable clear button so that your keyboard users will be able to interact with it.
74
+
75
+
As an example:
76
+
> In Chrome, this 'x' isn't a button but a div with a pseudo="-webkit-search-cancel-button". It doesn't have a tab index or a way to navigate to it without a mouse. Additionally, this control is only visible on mouse hover.
77
+
64
78
## Attributes
65
79
66
80
- `open` is true when the auto-complete result list is visible
0 commit comments