Post pobrano z: Using <details> for Menus and Dialogs is an Interesting Idea
But there is an HTML element that also does toggles!
<details>! For example, it’s definitely the quickest way to build an accordion UI.
We went all in on details to turn a lot of things interactive without JS. There is also https://t.co/SFXtkNzIbZ, and here is a talk I gave on leveraging the power of details, which mentions the CSS trick 🙂 https://t.co/DmX8opvi4z
Happy to talk/share about about any of these!
— Mu-An Chiou (@muanchiou) February 1, 2019
The worst strike on
<details> is its browser support in Edge, but I guess we won’t have to worry about that soon, as Edge will be using Chromium… soon? Does anyone know?
The post Using <details> for Menus and Dialogs is an Interesting Idea appeared first on CSS-Tricks.