-
Notifications
You must be signed in to change notification settings - Fork 6
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
Feature/com UI 3394 form field number a11y check #840
base: main
Are you sure you want to change the base?
Conversation
…be accessible from a keyboard
@@ -286,7 +286,6 @@ export class GuxFormFieldNumber { | |||
<div class="gux-step-buttons-container"> | |||
<button | |||
class="gux-step-button" | |||
tabIndex={-1} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@daragh-king-genesys I think the component is technically accessible, functionality matches the native component, but we've added in 2 buttons outside the input, which differs from the native number input. A sighted keyboard user should probably be able to access these. Technically accessible but maybe bad UX for a keyboard user?
My hunch is that it would fail an audit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add back in the tabIndex={-1}
…be accessible from a keyboard
While the component is technically accessible, I'm removing the
tabindex="-1"
as a keyboard user may not know intuitively that the arrow keys can increment the component.