Allow deep invokers for overlays #2015
vlaraort
started this conversation in
Open for contributions
Replies: 1 comment
-
|
This indeed sounds like something that needs a fix. No thoughts yet what the best approach should be. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It's not a common usecase, but this is something that I have encountered.
When I use something that is an overlay with an invoker, like a dialog
And the invoker is a direct node, it works properly, and the correct arias are appended to the invoker, like
aria-expandedBut, if I need that my invoker is wrapped in something like a tooltip
The
aria-expandedis added to the tooltip, instead of the button, which should be the real invoker.Actually, the invoker is calculated with
Which only allows to set the invoker as a direct child.
My workaround is to extend the default overlay component and override this function for my use case
But would be nice to have it working with the default overlays. I am not sure what would be a good approach. Allow to find the
slot=inkoverin the nested DOM tree? add adeepInvokerconfiguration? Document the_overlayInvokerNodeas a overridable?Thoughs?
Beta Was this translation helpful? Give feedback.
All reactions