[wp-trac] [WordPress Trac] #62215: Remove `role="presentation" from h4 section headings in customizer nav menus

WordPress Trac noreply at wordpress.org
Tue Oct 22 15:29:08 UTC 2024


#62215: Remove `role="presentation" from h4 section headings in customizer nav
menus
--------------------------+----------------------------
 Reporter:  joedolson     |       Owner:  joedolson
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:  6.8
Component:  Customize     |     Version:  4.3
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  accessibility
--------------------------+----------------------------
Changes (by joedolson):

 * owner:  (none) => joedolson
 * status:  assigned => accepted


Comment:

 The main reason for changing these from `role="presentation"` is to
 improve the overall headings hierarchy when the customizer is open.

 At some level, the customizer interface needs to be considered as a
 separate tree, because it's effectively impossible to integrate it with
 every theme, since each theme will use its own hierarchy.

 But the customizer hierarchy could at least be self-consistent.

 I think the main change we should make is to alter the "You are
 customizing {site title}" to an H2, so that there's a wrapping context for
 the rest of the customizer.

 In theory, what that would mean is that for well-structured themes that
 start with an H1, we'd have an h2 tree that existed before the theme
 structure for the customizer; then we'd get to the h1, which would be the
 theme.

 For themes that are poorly constructed, well...not much we can do.

 That h2 would also give a stable point of reference in the headings
 structure, since all of the other headings change dynamically depending on
 which panel is active.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62215#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list