02:17Why you shouldn't use a div for everything - creating accessible buttons and navigations
From the creator
I think it's important to highlight when we've made past mistakes and show the right way to do it when we find those mistakes. π Links β The finished code: https://codepen.io/kevinpowell/pen/BaVdrLm β More on Visually Hidden: https://www.scottohara.me/blog/2017/04/14/inclusively-hidden.html π Resources I used to help make this video: β AcceDe Web Accessibility Guidelines: https://www.accede-web.com/en/guidelines/rich-interface-components/hamburger-menu/ β Paul J Adam's Accessible Hamburger Menu: https://pauljadam.com/demos/hamburger-menu.html β Ally Style Guide's Mobile Navigation: https://a11y-style-guide.com/style-guide/section-navigation.html#kssref-navigation-navigation-mobile β Building Accessible Menu Systems on Smashing Magazine: https://www.smashingmagazine.com/2017/11/building-accessible-menu-systems/#navigation-menu-buttons β Timestamps 00:00 - Introduction 00:29 - The mistake I made 01:18 - Why divs donβt make good buttons 03:10 - Fixing the styling of the button 03:48 - The second big mistake 05:20 - Adding extra context to our button 09:27 - Fixing up the CSS 10:47 - Updating the original jQuery to JavaScript 12:03 - Adding the aria-expanded to the JS 13:20 -
Published 2022-12-01 Β· Watch on YouTube β
Availability and playback restrictions are controlled by the original channel.
Keep exploring Learn to Code
02:17
10:51Competitive Programming Tutorial #42 | Convex hull trick: turn the DP into lines
SyntaxPilot
08:20
04:59IIMT Collaborative Robot Palletizing Programming Tutorial | Easy Pick & Place Stacking
IIMTRobot
09:25
01:59
08:41