You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
As a Pharos consumer I want to be able to utilize ARIA appropriately while using the Pharos button. When used appropriately, these attributes add much needed context for users of assistive technology to interactive elements so they have clear purpose and behave as expected.
Actual behavior
Pharos consumer currently can pass in label attribute to add the aria-label as well as the pressed to pass in the aria-pressed attribute to the underlying <button> element when constructing the custom web component for a button.
However, there are additional uses of ARIA that are useful to convey various states of a button and their association with other bits of content on the page. Consumers are unable to apply the following commonly used ARIA attributes successfully to the Pharos button:
aria-expanded
aria-haspopup
aria-description (not fully supported by browsers but can be used)
The following rely on an ID reference that does not work from light to shadow DOM & vice versa:
aria-labelledby
aria-describedby
aria-controls
Consumers may attempt to apply aria attributes directly to the Pharos component itself however it is often not parsed correctly while using assistive technology and this context is lost.
Steps to reproduce the issue
Apply the ARIA above directly to the Pharos button and validate in Chrome inspector it's accessibility properties.
Additional information #628 for a non-breaking attempt at adding the ARIA attributes that do not rely on ID reference by introducing a naming convention #594 for the breaking change making label and pressed no longer work.
Research and other workarounds are needed to include the attributes that do rely on ID references.
Expected behavior
As a Pharos consumer I want to be able to utilize ARIA appropriately while using the Pharos button. When used appropriately, these attributes add much needed context for users of assistive technology to interactive elements so they have clear purpose and behave as expected.
Actual behavior
Pharos consumer currently can pass in
label
attribute to add thearia-label
as well as thepressed
to pass in thearia-pressed
attribute to the underlying<button>
element when constructing the custom web component for a button.However, there are additional uses of ARIA that are useful to convey various states of a button and their association with other bits of content on the page. Consumers are unable to apply the following commonly used ARIA attributes successfully to the Pharos button:
aria-expanded
aria-haspopup
aria-description
(not fully supported by browsers but can be used)The following rely on an ID reference that does not work from light to shadow DOM & vice versa:
aria-labelledby
aria-describedby
aria-controls
Consumers may attempt to apply
aria
attributes directly to the Pharos component itself however it is often not parsed correctly while using assistive technology and this context is lost.Steps to reproduce the issue
Screenshots or code
Pharos version
13.2.2
Your environment
Additional information
#628 for a non-breaking attempt at adding the ARIA attributes that do not rely on ID reference by introducing a naming convention
#594 for the breaking change making
label
andpressed
no longer work.Research and other workarounds are needed to include the attributes that do rely on ID references.
Resources
The text was updated successfully, but these errors were encountered: