-
Notifications
You must be signed in to change notification settings - Fork 97
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
ActiveDescendentController #2770
Comments
Any controller that helps simplify developers' lives is going to be a win. That said, I have a few questions / thoughts: Feasibility and Complexity1. Current Complexities of Cross-root ARIA:
2. Future Maintenance and Business Priorities:
Developer Demand and Alternatives3. Demand and Use Cases:
Looking forward to everyone's input. 👍 |
It's not ideal, no, but there is precedent in other design systems.
Yes, but... if we do this right, then we will not have to change any public apis at that point.
The back log is long, true, but...
Yes, combobox is one of my most commonly requested features, and I just don't think we can do it without active descendent
Interesting suggestion, how might that work? Would we still be able to implement reference targets as a solution to x-root aria once it lands, without having to change public apis? What about styling, could we include rich content (like items with description, icons, etc) in list items?
|
Good to know. 👍
AFAICT, we still can't add additional HTML inside an Your Stage 0-2 roadmap sounds like the way forward. |
Description of the requested feature
The RovingTabindexController helps component authors to implement the RTI pattern for compound elements like select menu / dropdown, tabs, accordion, etc. We have identified the need to implement the alternative active descendant pattern in the case of typeahead select.
In shadow DOM scenarios, this pattern will require some quite complicated workarounds to the cross-root aria problem.
Impacted component(s)
typeaheadmulti
variantSome previous work laid some conceptual foundations and guardrails. See for example
patternfly-elements/elements/pf-select/pf-select.ts
Lines 336 to 344 in 75c5441
It seems like the ActiveDescendentController will need to either copy the slotted options into the shadowroot, or require the input and buttons to be in the light dom.
At large, the ActiveDescendentController should be able to be used as a "drop-in" replacement for RTIC. I put "drop in" in quote marks, though, because clearly some additional work may be required.
Related issues
CC @adamjohnson for initial review of approach sketched here
CC @Arathy-s as well, with thanks for taking an interest in this project
The text was updated successfully, but these errors were encountered: