Opened 9 years ago
Closed 9 years ago
#33557 closed defect (bug) (fixed)
#a11y-headings - Post Meta Boxes H3 to H2
Reported by: | Cheffheid | Owned by: | joedolson |
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | 4.3 |
Component: | Administration | Keywords: | has-patch commit |
Focuses: | ui, accessibility | Cc: |
Description (last modified by )
The post meta boxes are currently H3s and they need to be upgraded to H2s to ensure a proper heading structure.
We'll also need to make sure that we don't break the styling in the process and make sure to update any of the existing CSS from h3 to h2. As well as add CSS to maintain the current look if necessary.
#a11y-headings
Attachments (10)
Change History (43)
This ticket was mentioned in Slack in #accessibility by cheffheid. View the logs.
9 years ago
#5
@
9 years ago
Probably should scan for usages in plug-ins; don't want to break a ton of plug-ins by removing it.
#6
in reply to:
↑ 4
@
9 years ago
Replying to afercia:
not 100% sure but looks like there are no
#poststuff h2
in core anymore.
Looks like it was meant for the Advanced Options header in 2.5.
The header was removed in 2.7: [8691/trunk/wp-admin/edit-form-advanced.php].
#7
@
9 years ago
- Keywords has-patch added
Added patch changing to H2 and removing #poststuff h2
CSS. Based on the slack conversations and references, it seems very unlikely this CSS is needed anymore; even if a plug-in is using it, it would have to be because they haven't updated their CSS in years...
This ticket was mentioned in Slack in #core by afercia. View the logs.
9 years ago
#9
@
9 years ago
Yup, removing the rule and merging #poststuff h2
in the current #poststuff h3
seems to most logical thing to do to me. Thanks Joe!
#12
@
9 years ago
Refreshed patch, rebuilt from the SVN root. Also to address .metabox-holder h3
and change it in .metabox-holder h2
.
#13
@
9 years ago
Last change affected headings in the Appearance > Menus screen, refreshed patch to address them till we make a decision about #33603.
This ticket was mentioned in Slack in #accessibility by afercia. View the logs.
9 years ago
This ticket was mentioned in Slack in #accessibility by afercia. View the logs.
9 years ago
#17
@
9 years ago
I think that metabox-holder h2 and metabox-holder h3 need to have matched styles; we can't just replace, because a lot of plug-ins make use of the metabox-holder classes to create their settings page layouts.
Alternate patch attached.
#19
@
9 years ago
- Keywords commit added
- Refreshed patch after [34241]
- We should also take care of a couple headings used inside the meta boxes (see
meta-boxes.php
). Changed them in plain links, didn't see any reason why they should be headings - The current CSS selector for
+ Add New Category
is tied to categories, doesn't take into account custom taxonomies. Changed to a more generic selector. It should be changed in a button later (see #26504).
This ticket was mentioned in Slack in #accessibility by afercia. View the logs.
9 years ago
This ticket was mentioned in Slack in #accessibility by afercia. View the logs.
9 years ago
#22
@
9 years ago
Took a look at this, and the new patch seems good. I agree that Add New Category should become a button, and that this should happen later.
Didn't see any problems with any of the example plugin meta boxes I looked at.
This ticket was mentioned in Slack in #core by afercia. View the logs.
9 years ago
#24
@
9 years ago
I would add CSS rules, not replace - for general BC. Refreshed the patch to eliminate some fuzz wth recent churn.
#26
@
9 years ago
- Keywords commit added; needs-refresh removed
Refreshed patch. I'm not sure we should have some back compat for the old h3
but if we want to do that we should select just the first one, i.e. the meta box "title". There might be some redundancy, but even before the patch #poststuff h3
and .metabox-holder h3
are basically overlapping.
Side note: as far as I can see the old #poststuff h2
style was introduced in r6578 and probably unused for a few years now. Couldn't find any previous h2 inside #poststuff
.
In
/wp-admin/css/edit.css
I can see:not 100% sure but looks like there are no
#poststuff h2
in core anymore. It was used in Press This old versions but couldn't find any other use. Thoughts? cc @SergeyBiryukov :) First introduced here https://core.trac.wordpress.org/changeset/6578