Rich text merge consecutive headings #12951
Maypher
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In the rich text field if you wanted to write a multi line field you'd do
Then when using
<RichText/>
it gets output asWhile correct it can confuse screen readers. When they see multiple header tags they don't treat them as a single unit but instead as different elements.
My proposed solution is to merge consecutive header tags together (h1 with h1, h2 with h2, etc.) So it outputs
By merging them into a single element screen readers will treat them as a single unit while also allowing individual line styling. Each line is wrapped inside a
div
sotext-align
can be configured independently for each line.Beta Was this translation helpful? Give feedback.
All reactions