Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

Commit

Permalink
A11y: Reinstate css for default marker for disclosure widget (#243)
Browse files Browse the repository at this point in the history
Avoids accessibility issue that replacing the default marker may cause for some assistive technology. See https://www.scottohara.me/blog/2022/09/12/details-summary.html
  • Loading branch information
KTS915 authored Oct 12, 2023
1 parent 03d4938 commit 0323c52
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/wp-admin/css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -2058,29 +2058,23 @@ html.wp-toolbar {
position: relative;
}

/* Replace default marker in details element */
/* Enhance default marker in details element */
details summary > * {
display: inline;
}

.metabox-holder details > summary {
list-style: none;
margin-top: -0.3em !important;
}

/* Addresses Safari issue, see v2 PR#217 */
.metabox-holder details > summary::marker,
.metabox-holder details > summary::-webkit-details-marker {
display: none;
}

.metabox-holder details > summary::before {
content: '\25B8';
font-size: 1.5em;
cursor: pointer;
}

.metabox-holder details[open] > summary::before {
content: '\25BE';
.metabox-holder details > summary h2 {
padding-left: 5px !important;
}

#post-body-content {
Expand Down

0 comments on commit 0323c52

Please sign in to comment.