Closed tfquirk closed 4 years ago
As part of this fix, we should also remove the aria-label
in PopperGuide
https://github.com/priceline/design-system/blob/master/packages/popover/src/PopoverContent.js#L91
The reason we don't want the aria-label in the PopperGuide
is because when we bring focus to the dialog, the screen reader will only read the aria-label and not the content inside. This can be problematic in most instances, since it won't provide enough context to the users as to what's inside of the dialog.
cc. @bmansell
Line 66 of Pcln-popover hard codes the aria-label:
Ideally, we would allow a more flexible aria-label to be passed to avoid accessibility errors such is this currently being called out in our storybook:
This would allow the popover to truly wrap any child content and avoid this accessibility issue.