-
-
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
Tree view example #23
Comments
The main goal is to showcase that with a single rule you can create toggle roots for nested elements and they will work independently. I prefer the usage of explicit buttons here instead of triggering directly on the |
hi @jerivas. thanks for the background. I'll reframe my question though. Being labelled a 'tree view' I would have expected one of two things:
it's unclear to me at this point the scope of what these demos are trying to represent. is it simply show/hide behaviors and then an author is on the hook to do everything else. Or are the demos not accurately demonstrating the expected accessibility semantics/keyboard functionality that their labelling indicates they are meant to? i hope that helps clarify where i'm coming from here (and with my other issues). thanks |
I'd lean towards this option but will let @mirisuzanne clarify |
Hi @scottaohara - thanks for all your great comments here! The overall goal of CSS Toggles is to get to the point where authors don't need to handle all the aria roles by hand (your option 2), but we know we're not there yet. So far this is a demo of the current state of the spec, as best we can reproduce it, and a place to document/explore the problems that still need to be solved (like this one). So the goal at this point has been to surface exactly these questions, and then work through it from a few angles:
Thanks for filing the issue, I'll add a link to it from the demo page - and document it in the Toggles explainer as well. /cc @tabatkins |
thanks @mirisuzanne, that explanation does help. So the polyfill is not to demonstrate the ideal end state at this point, but rather there are supposed to be accessibility issues with these widgets, and the demo is to illustrate and thus elicit feedback on what these would need to behave like? |
@scottaohara Yeah, that's roughly the current state. I can work on documenting that better with some warnings. I think it would be great if we are able to resolve some of those issues here in the polyfill, and that would be a great next step here – but I expect some of these issues will require broader changes to the spec itself, and we'll want to open issues on that repo as well. (Still trying to figure out the best place for each of these things to live - as we're a bit scattered between the spec, this polyfill, and the various potentially interested w3c working/community groups). |
if you want a review of the updated documentation/warnings, or if i can help, please let me know. |
Is the intent of this example to demonstrate that someone could use this toggle behavior and get the expected semantics and behavior (specific keyboard keys and allowance for potential for some nested interactive elements) of a tree view?
Presently the behavior is similar the previous accordion/disclosure pattern, but for the fact this has retained the list semantics as nested button elements are used instead of overwriting the structural semantics like in the previous demo.
The text was updated successfully, but these errors were encountered: