openxthinking
openxthinking
KPCKevin Powell - Community
Created by openxthinking on 12/19/2022 in #front-end
Using the dialog element for an off canvas menu
👋 everyone! Do you think using the <dialog> element for creating an off canvas menu is a smart move? I wanted to take advantage of all the built-in functions that come with <dialog>, like esc key, focus, backdrop etc. I’m a bit conflicted in regards of a11y for example is it good or I better go the <div> way? Or perhaps there’s something else that might be a problem?! 🤔
9 replies