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
To codify the solution to the known VoiceOver (VO) issue, where an <h1> is announced as two <h1>s because the copy had additional markup inside.
For example: VO reads <h1>AX <em>for all</em></h1> as "AX heading level 1, for all heading level 1"
The solution is to wrap the inner content of the <h1> in a span like this: <h1><span role="text">AX <em>for all</em></span></h1> which VO then announces as "AX for all heading level 1"
I prefer the single Heading approach, to more clearly distinguish this component from standard markup.
I think this would make the initial decision to use the component more conscious and, in support, make it more transparent that a component, not standard markup, was being used.
* Initial Image component developement
* v2 Image component
* v2 Figure
* Accessibility example
* v3 BEM and light refactor
* Removed unused versions and assets. Moved notes to DOCS file
* Removed redundant ternaries. Added separate class for caption
* #98 - Cleaned up per PR comments
To codify the solution to the known VoiceOver (VO) issue, where an
<h1>
is announced as two<h1>
s because the copy had additional markup inside.For example: VO reads
<h1>AX <em>for all</em></h1>
as "AX heading level 1, for all heading level 1"The solution is to wrap the inner content of the
<h1>
in a span like this:<h1><span role="text">AX <em>for all</em></span></h1>
which VO then announces as "AX for all heading level 1"References
https://axesslab.com/text-splitting/
https://dequeuniversity.com/rules/axe/4.3/aria-text
The component could be a single Heading accepting a
level
prop:or 6 separate Headings
<H1>
,<H2>
, etc:or both with H1, H2, etc as higher order components that use Heading:
The text was updated successfully, but these errors were encountered: