253 | 254 | 255 | 256 | 257 |
258 | 259 | 260 |
261 |

accessible menu

262 |

A sandbox static page that demonstrates WCAG accessible mega menu using Tailwind CSS v.3 and extending from Disclosure Menus.

263 |
264 | 265 | 266 | 267 |
268 |

Keyboard Support

269 |
270 | 271 |
272 |
273 |

Tab Shift + Tab

274 |

Use the tab and shift-tab keys to access top-level menu links or to focus on the previous links.

275 |
276 |
277 | 278 |
279 |
280 |

Space or Enter

281 |

Use the "Space" or "Enter" keys to activate the visibility of the menu dropdown.

282 |
283 |
284 | 285 |
286 |
287 |

Escape

288 |

Use this key to close the current dropdown menu and return focus to the element that spawned it.

289 |
290 |
291 | 292 |
293 |
294 |

Up or Down arrow

295 |

Use the "Up" key to move focus to the previous item in the menu links. If the focus is on the first item, move focus to the last item. 296 | Use the "Down" key to move focus to the next item in the menu links. If the focus is on the last item, move focus to the first item.

297 |
298 |
299 | 300 |
301 |
302 |

Right or Left arrow

303 |

Use the "Right" key to move focus to the next item in the menu links. If the focus is on the last item, move focus to the first item. 304 | Use the "Left" key to move focus to the previous item in the menu links. If the focus is on the first item, move focus to the last item.

305 |
306 |
307 | 308 |
309 |
310 |

Home or End

311 |

Use the "Home" to move focus to the first item in the current menu level. Use "End" to move focus to the last item in the current menu level.

312 |
313 |
314 | 315 |
316 |
317 | 318 | 319 |
320 |