- Steve Jones
Using HTML elements for their given meaning, not just for their appearance.
Viewport, magnification, assistive technology
When menu items are not in specific order.
When menu items are in sequence.
Use HTML5 nav element
Use aria-current attribute
Contact Us
Changing hovered and focus states give uses visual guideance when navigating the menu.
nav a:hover,
nav a:focus {
color: #0d5f9d; /* blue */
background-color: #fff; /* white */
text-decoration: underline;
}
nav a:focus {
outline: solid 2px #0d5f9d; /* blue */
outline-offset: 2px;
}
Changing activated state helps users identify which menu item they've clicked.
nav a:active {
color: #072446; /* dark blue */
background-color: #F3CD1D; /* yellow */
text-decoration: underline;
}
Visually indicating the active menu item helps users identify the current page.
nav [aria-current=page] {
background-color: #F3CD1D; /* yellow */
color: #072446; /* dark blue */
border-bottom: .25em solid #072446; /* dark blue */
}
Fly-out menus are a nested list within the parent list item
nav > ul li ul {
display: none;
}
nav > ul li:hover ul {
display: block;
}
...
Shop
...
Owner & CTO
@stevejonesdev
Meetup: Equalizedigital.com/events
Facebook Group: facebook.com/groups/wordpress.accessibility
Podcast: AccessibilityCraft.com