Commit Graph

6 Commits

Author SHA1 Message Date
Muhannad Abdelrazek
d7e49a4dc3 A11y: Enhance dropdown examples. (#908)
- use button to can reach by keyboard and make a user with screen reader understand that's is a button.
- add aria-haspopup to make screen reader user understand this button have a drop-down.
- add aria-controls to make screen reader user understand this button control on items called x.
- should add aria-expanded by JS when user toggle button.

- add aria-hidden to icons.
- add href=# to links to make it a link we can interact with a keyboard.

- add role menu to menu drop-down to make sure this div is a menu.
- should add aria-hidden by JS and toggle it by button expanded.
2017-07-26 18:45:08 +01:00
Jeremy Thomas
d28556d8dd Fix desktop container 2017-07-24 13:02:15 +02:00
Jeremy Thomas
28d22d97df Add more dropdown doc 2017-07-24 13:02:15 +02:00
Jeremy Thomas
41f9392a93 Add dropdown description 2017-07-24 13:02:15 +02:00
Jeremy Thomas
06a392072b Add breakpoint containers 2017-07-24 13:02:15 +02:00
Jeremy Thomas
7b395a8ad8 Add dropdown button 2017-07-24 13:02:15 +02:00