Skip to content

Fix navbar dropdowns#68

Open
muan wants to merge 2 commits intog0v:masterfrom
muan:master
Open

Fix navbar dropdowns#68
muan wants to merge 2 commits intog0v:masterfrom
muan:master

Conversation

@muan
Copy link
Copy Markdown
Member

@muan muan commented Dec 15, 2016

  • Use buttons for dropdown as they aren't "links", plus <a> without href isn't tabbable
  • Add aria-haspopup to indicate dropdown
  • #projects doesn't exist, aria-labelledby has no effect
  • Caret isn't useful for sr's so should be hidden
  • Fix caret position

⚠️ Would've added aria-expanded as well, but doesn't look like it's quite as easy to add a script to toggle the attribute 😔

Before

After

⭐⭐⭐⭐

- Dropdown buttons are not links, a without href isn't tabble
- Add aria-haspopup to indicate dropdown
- #projects doesn't exist, aria-labelledby has no effect
- Icon isn't useful for sr's so should be hidden

* Would've added aria-expanded as well, but doesn't look like
it's quite as easy to add a script to toogle the attribute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants