-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display template: Discuss removing h3 tag #173
Comments
I'm fine if we find another appropriate semantic element to use in its place. Just a |
Looking into what would be semantically appropriate. I think not a heading. The collapsible display templates don't have headings at all, so at best the current behavior is inconsistent. And do users want these as headings on their page? Hoping we can find something more generally useful. |
Before investing too much, we should make sure we can research any existing guidance focused on this pretty common component. And also consider testing with JAWS so we know our change makes it better. |
Yes, research is my intention :) Edit: Maybe ChatGPT knows... |
Results so far: Some people do distinguish between A caveat is that Note: We're also using [To use icons with |
Super great research! I'd seen one or two of those articles, but really useful to have them all in the same place. Some specific responses:
My understanding from reading all of the resources you provided is that an accordion is just a section with a show/hide, that can contain arbitrary HTML (like other headings, etc.) It looks like
Is a very good thought, I think the arrow customization is a big part of the widget. That said, this would be a pretty big refactor, for all of the reasons you've mentioned. The options as I see them:
|
The content can technically contain anything you want from what I can tell. I hadn't yet found anything that encouraged only plain text content.
Other item for the [options] todo: Avoid putting anything semantic inside a button or a button |
We can also do this piecemeal, starting with the lower hanging fruit. |
From the Dave Rupert post you linked
And from the Scott O'Hara post:
It can technically contain anything, but the main points I got from the stuff you linked were that summary will remove anything semantic (I said structural earlier) from the details. That's why I said it encouraged plain text; no one explicitly said it, but given it eats semantic content for accessibility, all that remains is (roughly) plain text and divs, no headings, bullets, structure, etc.
I'm not sure what you mean here; if you are saying that we should not include anything semantic inside the template contents for if we eventually change to summary / details, I'm not sure that's the best solution, given there's been no rules about that so far. The more I think and read about it, summary/details doesn't seem to be the right option. If we role our own, like the W3C example, we can put almost all of the semantic content outside the button, so I don't think we need to worry about that.
TBF, that disclaimer is put in front of all of the examples that I've seen. I think it's meant to be a "don't use this without testing", but it's a great starting template for us. |
I thought you meant the whole
All I mean is that currently we try to put the I'm still leaning towards (eventually) details/summary, but maybe we should discuss this real-time as we seem to be getting our wires crossed. |
I see now that I was getting details / summary backwards, and thinking that the button somehow wrapped over all of the details, even when expanded. That, combined with my misunderstanding of what Adrian was implying an accordion was led me way off the rails, apologies. With that calibration, I'm either-or between details / summary and rolling our own, with some testing between the two. Agreed that we probably don't need to discuss too much more here. |
No description provided.
The text was updated successfully, but these errors were encountered: