w3ctag / design-reviews

W3C specs and API reviews
Creative Commons Zero v1.0 Universal
330 stars 55 forks source link

Exclusive accordion (<details name="">) #866

Closed dbaron closed 1 year ago

dbaron commented 1 year ago

こんにちは TAG-さん!

I'm requesting a TAG review of exclusive accordions (<details name="">).

This feature adds a name attribute to the HTML details element so that multiple details elements (disclosure widgets) can be linked into an exclusive accordion, i.e., a widget where opening one of the details elements closes the others.

Further details:

You should also know that the current state of the prototype can be tested in current Chrome Canary or Dev, or in the future in Beta (within a week) or Stable (in a month or so) once they reach version 116, but only if you enable "Experimental Web Platform Features" in chrome://flags .

We'd prefer the TAG provide feedback as (please delete all but the desired option): 💬 leave review feedback as a comment in this issue and @-notify @dbaron

plinss commented 1 year ago

The handling of print here feels a bit awkward, it'd be nice if there was a way to force the details open via a media query. We do note that this also appears to be an issue with plain details elements so don't see this as a blocker.

atanassov commented 1 year ago

Following the links to a11y related issues with selection and Summary element, it's unclear to me if introducing this behavior will increase the problem or help. Please consider further engagement in the related issues.

hober commented 1 year ago

@plinss, @atanassov, and I took a look at this during the TAG's vF2F this week. See their comments above for specific bits of feedback. Overall, we're really happy with the simple, incremental approach you've taken here to add this feature to HTML. It fits right in with the existing use of name="" for radio buttons and checkboxes, and it doesn't require authors to change the existing structure of their documents. Thanks for bringing this to us for review!

dbaron commented 1 year ago

Thanks for the review.

A few (somewhat delayed) repsonses: