Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

conor-darcy
Copy link
Collaborator

…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.

Copy link

@@ -286,7 +286,6 @@ export class GuxFormFieldNumber {
<div class="gux-step-buttons-container">
<button
class="gux-step-button"
tabIndex={-1}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this removed?

Copy link
Collaborator Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants