-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problem with a11y listeners for sun buttons #463
Comments
In ComboBox, something better might look like: // Clicking on the button toggles visibility of the list box
this.button.addListener( event => {
if ( !this.listBox.visible ) {
this.showListBox();
if ( event.pointer.type === 'a11y' ) {
this.listBox.focus();
}
}
else {
this.hideListBox();
if ( event.pointer.type === 'a11y' ) {
this.button.focus();
}
}
} ); |
But see also the problem with |
Looks like this is already solved, @jessegreenberg offered to just clean it up. |
This is not duplicated anymore: Lines 364 to 368 in ee93abe
Also noting that sun buttons use a |
OK thanks, you were right @zepumph - I don't see anything else for this issue. There is also |
a11y has introduced a general problem with sun buttons. In button listeners, we need to know whether a button fired due to an event involving accessible input (e.g. keyboard) or pointer. And button listeners are currently provided with no information to make that decisions.
E.g. in ComboBox, here's what we currently had to do:
This requires a completely different listener for the button to handle button clicks for a11y, outside of sun/buttons/ listener API. And a11y is not at all integrated (or integratabtle) into a standard button listener.
We need a solution that allows us to write button listeners that handle all forms of input.
The text was updated successfully, but these errors were encountered: