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

Duplicate aria-label #60

Closed
zubairslamdien opened this issue Mar 20, 2024 · 2 comments · Fixed by #61
Closed

Duplicate aria-label #60

zubairslamdien opened this issue Mar 20, 2024 · 2 comments · Fixed by #61
Assignees
Labels
accessibility The inclusive experience released

Comments

@zubairslamdien
Copy link

Aria label needs removing from template

The aria-label on the button container should be removed because it already gets one from the core ariaRegion div.

Screenshots (if you can)

image

@zubairslamdien zubairslamdien added the accessibility The inclusive experience label Mar 20, 2024
@oliverfoster
Copy link
Member

oliverfoster commented Mar 20, 2024

You could do it the other way round?

<nav></nav> is equivalent to <div role="navigation"></div>

Role navigation is a landmark role, so you'd be able to jump to it with accessibility shortcuts.

It makes sense that the nav tag has a label.

The top aria label can come from either here and here for handlebars or here for jsx. You can see that those functions are controlled with the model attribute _isA11yComponentDescriptionEnabled which defaults to true in componentModel.

Probably best to force the pageNav model to default to false for _isA11yComponentDescriptionEnabled instead of removing from the nav element?

@oliverfoster oliverfoster self-assigned this Mar 20, 2024
github-actions bot pushed a commit that referenced this issue Mar 20, 2024
## [3.1.1](v3.1.0...v3.1.1) (2024-03-20)

### Fix

* No component description by default (fixes #60) ([3bb68c5](3bb68c5)), closes [#60](#60)
* No component description by default (fixes #60) ([4e13743](4e13743)), closes [#60](#60)
Copy link

🎉 This issue has been resolved in version 3.1.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility The inclusive experience released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants