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/toggle button directive #1645

Merged
merged 6 commits into from
Aug 30, 2024

Conversation

lukavdplas
Copy link
Contributor

This makes sure that all toggle buttons set aria-pressed appropriately. (Toggle buttons are buttons that express an on/off state with visual styling; aria-pressed makes that perceivable for assistive technologies.)

I added a ToggleButtonDirective to set the CSS class and aria-pressed in one go.

In some cases, I also addressed some additional issues:

  • <a> being used as a button
  • aria-label being used on the icon container in the button, rather than the button itself. As I recently found out, aria-label can be used quite widely, but not everywhere (see aria-label specification).

@lukavdplas lukavdplas added frontend changes to the angular frontend accessibility improvements in web accessibility labels Aug 15, 2024
@lukavdplas lukavdplas linked an issue Aug 15, 2024 that may be closed by this pull request
@JeltevanBoheemen JeltevanBoheemen merged commit 8f21960 into develop Aug 30, 2024
2 checks passed
@JeltevanBoheemen JeltevanBoheemen deleted the feature/toggle-button-directive branch August 30, 2024 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility improvements in web accessibility frontend changes to the angular frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Toggle/radio buttons
2 participants