Skip to content

[Accessibility] Card reveal button not accessible by keyboard interaction #539

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

Closed
3 tasks done
Tracked by #543
gselderslaghs opened this issue Dec 7, 2024 · 1 comment
Closed
3 tasks done
Tracked by #543
Labels
enhancement New feature or request

Comments

@gselderslaghs
Copy link
Member

Before submitting...

Context

When using the Card component with reveal modifier, reveal button is not tabbable/focusable by keyboard interaction which causes reduced accessibility towards people who rely on keyboard input

Current Behavior

When trying to tab into the reveal button, the element is ignored by keyboard interaction

Codepen example

Expected behavior

Reveal button should be tabbable/focusable by keyboard interaction

Possible Solutions or Causes

Implement the necessary functional attributes on initialization in order to make options tabbable/focusable by keyboard interaction

Your Environment

  • Version used: 2.1.1
@gselderslaghs gselderslaghs changed the title [Accessibility] Card reveal button not tabbable/focusable by keyboard interaction [Accessibility] Card reveal button not accessible by keyboard interaction Dec 11, 2024
@gselderslaghs gselderslaghs added the enhancement New feature or request label Dec 12, 2024
gselderslaghs added a commit to gselderslaghs/materialize that referenced this issue Dec 15, 2024
@gselderslaghs
Copy link
Member Author

Since v2.2.1 M.Cards.init(<selector>); is now necessary for the reveal to work properly, I think we can fix this by initialize cards programmatically on page load, this is also the case for other components, suggest to create a new issue or discussion for this
Closing this for now

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

No branches or pull requests

1 participant