Closed aarongerig closed 4 months ago
The web components in this library are real elements, so you can already add whatever attributes are necessary to the custom element itself:
<ph-link role="img" aria-label="Link icon"></ph-link>
As far as I know, there's no reason to apply accessible labels to anything inside the Shadow DOM; labeling the wrapping custom element should be sufficient!
As mentioned in this issue, phosphor allows the user/dev to add arbitrary attributes such as
aria-label
to the icons. Unfortunately, I cannot find any documented option to do that with the web components library.Would it be possible to add that feature or is it intended to restrict web components to not have that flexibility?