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

Headings with heading semantics #232

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

Headings with heading semantics #232

tseykovets opened this issue Jan 5, 2025 · 0 comments

Comments

@tseykovets
Copy link

Headings in the interface are only visual headings, but are not described semantically. This is an accessibility issue and creates inconvenience for users of assistive technologies such as screen readers.

It would be nice if the headings in the interface have the role of a heading.

The issue is relevant for the following elements:

  • Headings "Theme", "Auto Refresh", "Show first" and "Subscriptions" in the settings. They are laid out as an element, which has the role of banner and is intended for marking pages headers.

It is best to use basic heading tags:

<h2>Theme</h2>

As a last resort, if there is no desire or opportunity to change the layout and adapt styles for new elements, then you can use the role and aria-level attributes:

<header class="dropdown-header" role="heading" aria-level="2">Theme</header>

The option with the basic tag is preferable from an engineering point of view.

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