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

role="presentation" is misapplied on the navbar #468

Open
mattxwang opened this issue Apr 5, 2022 · 2 comments
Open

role="presentation" is misapplied on the navbar #468

mattxwang opened this issue Apr 5, 2022 · 2 comments
Labels

Comments

@mattxwang
Copy link
Contributor

See:

$ pa11y https://uclaacm.com/

> Running Pa11y on URL https://uclaacm.com/

Results for URL: https://www.uclaacm.com/

 • Error: This element's role is "presentation" but contains child elements with semantic meaning.
   ├── WCAG2AA.Principle1.Guideline1_3.1_3_1.F92,ARIA4
   ├── #menu-modal > ul
   └── <ul class="nav-items " role="presentation"><li><button type="button" role=...</ul>

 • Error: This element's role is "presentation" but contains child elements with semantic meaning.
   ├── WCAG2AA.Principle1.Guideline1_3.1_3_1.F92,ARIA4
   ├── #committee-mobile-nav-item > ul
   └── <ul class="committee-mobile-nav" role="presentation"><li><button type="button" href=...</ul>

 • Error: This element's role is "presentation" but contains child elements with semantic meaning.
   ├── WCAG2AA.Principle1.Guideline1_3.1_3_1.F92,ARIA4
   ├── #initiatives-mobile-nav-item > ul
   └── <ul class="committee-mobile-nav" role="presentation"><li><button type="button" href=...</ul>

3 Errors

And an example from MDN on how it should look:

<ul role="tablist">
  <li role="presentation">
    <a role="tab" href="#">Tab 1</a>
  </li>
  <li role="presentation">
    <a role="tab" href="#">Tab 2</a>
  </li>
  <li role="presentation">
    <a role="tab" href="#">Tab 3</a>
  </li>
</ul>
@mattxwang mattxwang added the bug label Apr 5, 2022
@alireza-jahandoost
Copy link
Contributor

Interested

@mattxwang
Copy link
Contributor Author

Interested

@matthewcn56 are you explicitly handling these issues or do you want me to? Very down for Alireza to take it on if he's interested!

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

No branches or pull requests

2 participants