Opened 8 years ago
Closed 8 years ago
#40264 closed defect (bug) (fixed)
Twenty Seventeen: Incorrect heading hierarchy for front page sections
Reported by: | celloexpressions | Owned by: | swissspidy |
---|---|---|---|
Milestone: | 4.7.4 | Priority: | normal |
Severity: | normal | Version: | 4.7 |
Component: | Bundled Theme | Keywords: | has-patch commit fixed-major |
Focuses: | accessibility | Cc: |
Description
When the posts page is used as a front page section, it displays recent post titles. These should be a sub-level of hierarchy within the posts-page front page section. The posts-page section title is an h2
, so the individual post titles should be h3
.
Issue found by @joedolson in the Dynamic Seventeen theme accessibility-ready review.
Attachments (2)
Change History (21)
This ticket was mentioned in Slack in #core by swissspidy. View the logs.
8 years ago
#2
@
8 years ago
When displaying regular posts on the front page, i.e. not within a section, the page title ("Posts") is a <h2>
while the individual post titles are <h2>
as well. This patch doesn't address this, even though it basically is the same issue.
#3
follow-up:
↓ 4
@
8 years ago
Good catch everyone! I missed this in the accessibility review I did.
I agree with @swissspidy that we should make this change for when posts are displayed on the front page. In this case, they'll be a <h3>
, but I assume the font size should remain the same size as the <h2>
s are now – so the visual hierarchy is the same. What do you think @melchoyce?
#4
in reply to:
↑ 3
@
8 years ago
Replying to davidakennedy:
I agree with @swissspidy that we should make this change for when posts are displayed on the front page. In this case, they'll be a
<h3>
, but I assume the font size should remain the same size as the<h2>
s are now – so the visual hierarchy is the same. What do you think @melchoyce?
This would be my ideal approach 👍
#5
@
8 years ago
@melchoyce @davidakennedy With 4.7.4 now being planned for next Tuesday, do you think this one could be made ready for 4.7.4? We already have a few fixes for Twenty Seventeen in this release that might warrant a new version.
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
8 years ago
#9
@
8 years ago
With 4.7.4 now being planned for next Tuesday, do you think this one could be made ready for 4.7.4?
@swissspidy I think so. Initial patch incoming. I'll take a closer look at this tomorrow morning to make sure I didn't miss anything, and have @laurelfulford review it if she can.
@
8 years ago
When displaying regular posts on the front page, make post titles <h3>
to stay within a hierarchy.
#10
@
8 years ago
- Keywords needs-refresh removed
Thanks @davidakennedy! The latest patch looks good to me.
#13
@
8 years ago
@davidakennedy After having a second look at 40264.2.patch , why is the @version
not updated in all affected template files?
Should we perhaps do such a change in a separate ticket similar to #39489?
Use h3 when the excerpt template is being used within a front page section.