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
For some html components it's recommended to use aria-label, aria-labelledby, and aria-describedbybut in Flow these components are not implementing the HasAriaLabel interface
Describe the solution you'd like
When it's recommended to use the aria-label, I would like to use the interface, when it's not recommended, we can use a Helper method or directly the Element API.
So I wouldn't add the HasAriaLabel for a Div because it requires a role attribute.
But for the iframe, img, header, footer, main, nav, aside, section, and form, a, audio and video, input, select, button, and textarea.
Currently Main or Image implement the HasAriaLabel but it's not the case for an IFrame or Aside.
I don't know where the static methods could be added. At the same time we could add more aria-attr: AriaHelper.setAriaLabel(myOddComponent, "This is odd");
and AriaHelper.setAriaRole(myOddComponent, "complementary");
...
The text was updated successfully, but these errors were encountered:
For most assistive technology it's fine to use aria-label or aria-labelledby on the <nav>, and <main> elements but not on <footer>, <section>, <article>, or <header> .
At least, the IFrame should implement the HasAriaLabel according to the 2 links
Describe your motivation
For some html components it's recommended to use
aria-label
,aria-labelledby
, andaria-describedby
but in Flow these components are not implementing theHasAriaLabel
interfaceDescribe the solution you'd like
When it's recommended to use the
aria-label
, I would like to use the interface, when it's not recommended, we can use a Helper method or directly the Element API.Describe alternatives you've considered
We could use directly the Element API.
Additional context
There is a link that explain the problem: https://www.tpgi.com/short-note-on-aria-label-aria-labelledby-and-aria-describedby/
So I wouldn't add the
HasAriaLabel
for aDiv
because it requires arole
attribute.But for the iframe, img, header, footer, main, nav, aside, section, and form, a, audio and video, input, select, button, and textarea.
Currently
Main
orImage
implement theHasAriaLabel
but it's not the case for anIFrame
orAside
.I don't know where the static methods could be added. At the same time we could add more
aria-attr
:AriaHelper.setAriaLabel(myOddComponent, "This is odd");
and
AriaHelper.setAriaRole(myOddComponent, "complementary");
...
The text was updated successfully, but these errors were encountered: