jupyter-widgets / ipywidgets

Interactive Widgets for the Jupyter Notebook
https://ipywidgets.readthedocs.io
BSD 3-Clause "New" or "Revised" License
3.13k stars 948 forks source link

Evaluate using native HTML details element for accordion (when browsers support it) #3873

Open jasongrout-db opened 9 months ago

jasongrout-db commented 9 months ago

In Chrome 120, a name attribute is added to details elements to make it possible to do an accordion in native html. Other browsers indicate positive interest. When this is widespread, we may consider moving our custom accordion control to native html, so it is simpler, more accessible, etc.

jasongrout commented 3 days ago

Firefox 130 was released a few weeks ago, which was the last major browser version to implement this.

See the explainer and the caniuse page.