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

Fix labelledby in tab section #1583

Merged
merged 1 commit into from
Nov 19, 2020
Merged

Conversation

PVince81
Copy link
Contributor

The aria-labelledby must contain the id of an element that contains the
label and not a direct text. This fixes it by pointing back to the
matching tab heading element.

As an additional bonus, this will semantically link this "tabpanel" to
the matching "tab".

Tested with Talk and a screen reader: the screen reader now says "Participants region" or "Settings region" when clicking inside the tab.

The aria-labelledby must contain the id of an element that contains the
label and not a direct text. This fixes it by pointing back to the
matching tab heading element.

As an additional bonus, this will semantically link this "tabpanel" to
the matching "tab".

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
@PVince81 PVince81 added bug Something isn't working 3. to review Waiting for reviews labels Nov 19, 2020
@PVince81 PVince81 self-assigned this Nov 19, 2020
@PVince81 PVince81 merged commit ac8bb3c into master Nov 19, 2020
@PVince81 PVince81 deleted the bugfix/noid/fix-sidebar-labelledby branch November 19, 2020 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants