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

Semantic states of toggle buttons #230

Open
tseykovets opened this issue Jan 5, 2025 · 0 comments
Open

Semantic states of toggle buttons #230

tseykovets opened this issue Jan 5, 2025 · 0 comments

Comments

@tseykovets
Copy link

The states of toggle buttons are described only visually, but not semantically. This is an accessibility issue and creates inconvenience for users of assistive technologies such as screen readers.

It would be nice if the states of controls are described semantically as well.

The issue is relevant for the following controls:

  • Article filter toggle buttons (Unread, Starred, All)
  • Themes toggle buttons in settings (Light, Sepia, Night)
  • Automatic refresh intervals toggle buttons in settings (0, 10m, 30m, 1h, 2h, 4h)
  • Sorting order toggle buttons in settings (New, Old)

In all these cases, it is enough to add the aria-pressed="true" attribute to the pressed button and remove it from the previously pressed button, or switch it to aria-pressed="false". This will solve this issue.

For more details see:

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

No branches or pull requests

1 participant