Closed iceteabottle closed 2 years ago
I don't understand what you mean... There is the aria-describedby attribute, you simply need to choose a value, from the popper itself or from the default options...
By the way the "button" of your flow could be out of the scope of the popper, because you could choose to open the popper programmatically. So if you mean that the popper directive should add a "aria-describedby" attribute on the trigger, I think it makes no sense at all.
Thanks for you fast response.
That's not the way aria-describedby should work. The element (in my case the button) that has a descriptive information like a tooltip needs the aria-describedby attribute.
<button
[popper]="tooltipText"
aria-describedby="the_id_of_the_popper_container"
>Click me</button>
Since the popper-container is not an actual element, I guess you mean the_id_of_the_popper_content
...
I guess we could expose that id from the directive...
Need to do some checks but I think it's not a big issue...
Imho this is a bug since is a big accessibility issue. I hope I'm not alone with this opinion :)
Describe the bug The trigger of the popper has no aria-describedby attribute although the popper container has a unique ID wich would allow a link via aria-describedby.
To Reproduce Steps to reproduce the behavior:
Expected behavior An element with a tooltip really need the aria-describedby attribute for accessibility reasons.
Additional context I extend your directive but sadly all important properties I would need to add the aria-describedby attribute myself are private...
I hope you understand this accessibility issue as bug. We should not exclude anybody from a good user experience. Imho it should easy to fix :)