Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page Layouts: Heading levels are skipped #43891

Closed
AtrumGeost opened this issue Jul 3, 2020 · 5 comments
Closed

Page Layouts: Heading levels are skipped #43891

AtrumGeost opened this issue Jul 3, 2020 · 5 comments
Labels
Accessibility (a11y) [Pri] Low Address when resources are available. Triaged To be used when issues have been triaged. [Type] Bug

Comments

@AtrumGeost
Copy link
Contributor

Steps to reproduce

  1. Create a new page
  2. Select one of the following Page Layouts with a red border:

Screen Shot 2020-07-03 at 4 18 58 PM

Screen Shot 2020-07-03 at 4 21 26 PM

Screen Shot 2020-07-03 at 4 24 23 PM

Screen Shot 2020-07-03 at 4 26 39 PM

Screen Shot 2020-07-03 at 4 29 22 PM

Screen Shot 2020-07-03 at 4 33 37 PM

  1. Click on the "Content Structure" button (if one of the red-bordered pages doesn't display a warning, then it was marked because it has a paragraph block that's styled as a heading)

What I expected

For the heading levels to be respected: H1 (page title) > H2 > H3 > H4 > H5 > H6

What happened instead

Many heading levels are skipped

Browser / OS version

Firefox 78.0.1 (64-bit)

Screenshot / Video

Screen Shot 2020-07-03 at 4 12 27 PM

Context / Source

#dogfooding

@AtrumGeost AtrumGeost added the Accessibility (a11y) label Jul 3, 2020
@jeyip jeyip added [Status] Needs Design Review Add this when you'd like to get a review / feedback from the Design team on your PR [Pri] Low Address when resources are available. and removed [Status] Needs Design Review Add this when you'd like to get a review / feedback from the Design team on your PR labels Nov 11, 2020
@jeyip
Copy link
Contributor

jeyip commented Nov 11, 2020

I was able to reproduce this issue easily with the provided instructions. I didn't check every page, but I did confirm issues with skipped heading ranks on a sample from the About Page templates, Blog Page templates, Contact Page templates, and Menu Page templates.

It looks like the only reason we skipped heading ranks was to modify font size. I see the easiest solution being to refactor the rendered content for page templates. Rather than using heading ranks to change font size, we can use the correct heading ranks with customized font sizes (from block settings).

Ex. In the one offending Menu Page Template, there is a h4 header used. We can, alternatively, use an h2 with a font size of 20px.

There's a relevant discussion in #43892, an issue that also deals with skipped heading levels, but for Block Patterns instead of Page Templates.

@davipontesblog
Copy link
Contributor

I am moving this to the triaging board to see if it's still an issue with the new layout picker on simple sites. If so, we can close it.

@synora synora added [Type] Bug Triaged To be used when issues have been triaged. labels Mar 16, 2021
@synora
Copy link
Contributor

synora commented Mar 16, 2021

Keeping open due to the ongoing conversation at #43892.

@kwight
Copy link
Contributor

kwight commented Apr 20, 2021

@ianstewart Would you call this a dupe of #43892, meaning the fix for that issue would fix this at the same time – or are they separate mechanisms?

@ianstewart
Copy link
Contributor

This is a duplicate. I'll close it for now in favour of that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accessibility (a11y) [Pri] Low Address when resources are available. Triaged To be used when issues have been triaged. [Type] Bug
Projects
None yet
Development

No branches or pull requests

6 participants