Best practice to use a modal/ dialogue for a mobile side menu?

If you're building a mobile side menu that pops in and out is it best practice to use just a div/nav with all your links nested inside or to use something like a modal/dialogue instead? I'm thinking that with a div you would lose a lot of baked in accessibility that a modal might have for example or does that present it's own issues? Thanks in advance for any tips or advice!
3 Replies
Wonderbear
Wonderbear6mo ago
I would not use a dialog element. It would work, but its not really meant for menus I think
clevermissfox
clevermissfox6mo ago
You could use the popover attribute on a nav? I don’t think I’d use dialog
ἔρως
ἔρως6mo ago
a dialog is a very bad choice for this i know it offers a lot of enticing features, but it wont do what you want without a ton of javascript to fix it
Want results from more Discord servers?
Add your server