Describe the new a11y feature or project enhancement
The new role="text" is nice because it prevents a screenreader from breaking up sentences with <span> or <strong> inside, however when using it on a heading, it causes the heading to lose its semantic meaning.
Describe the solution you'd like
h1, h2, h3, h4, h5, h6 {
&[role="text"] {
// Show warning
}
}
Link(s)
https://openinclusion.com/blog/using-role-text-enhance-mobile-screen-reader-output/
Describe the new a11y feature or project enhancement
The new
role="text"is nice because it prevents a screenreader from breaking up sentences with<span>or<strong>inside, however when using it on a heading, it causes the heading to lose its semantic meaning.Describe the solution you'd like
Link(s)
https://openinclusion.com/blog/using-role-text-enhance-mobile-screen-reader-output/