Skip to content

Commit 1664ea5

Browse files
committed
Customizer: Fix layout issues in customizer accordions.
Adjust some CSS characteristics in the customizer accordions to avoid a slight horizontal scroll, allow the chevron icon to be part of the clickable control surface, and resolve a pre-existing padding issue allowing overflow on accordion headings. Follow up to [59224]. Props laurelfulford, wildworks, domainsupport, sabernhardt, rcreators, desrosj, sainathpoojary. Fixes #62313, #62335. git-svn-id: https://develop.svn.wordpress.org/trunk@59409 602fd350-edb4-49c9-b593-d223f7449a82
1 parent a731b9b commit 1664ea5

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/wp-admin/css/common.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2462,7 +2462,7 @@ h1.nav-tab-wrapper, /* Back-compat for pre-4.4 */
24622462
}
24632463
.nav-menus-php .metabox-holder .accordion-section-title span.dashicons.dashicons-arrow-down::before {
24642464
position: relative;
2465-
left: -1px
2465+
left: -1px;
24662466
}
24672467

24682468
.nav-menus-php .metabox-holder .accordion-section.open .accordion-section-title span.dashicons.dashicons-arrow-down {

src/wp-admin/css/customize-controls.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,17 +553,19 @@ body.trashing #publish-settings {
553553
.15s border-color ease-in-out;
554554
}
555555

556-
.accordion-section-title:has(button.accordion-trigger) {
556+
.accordion-section-title:has(button.accordion-trigger),
557+
#customize-controls .current-panel .control-section > h3.accordion-section-title:has(button.accordion-trigger) {
557558
padding: 0;
558559
}
559560

560561
.accordion-section-title button.accordion-trigger {
561562
all: unset;
562563
width: 100%;
563564
height: 100%;
564-
padding: 10px 10px 11px 14px;
565+
padding: 10px 30px 11px 14px;
565566
display: flex;
566567
align-items: center;
568+
box-sizing: border-box;
567569
}
568570

569571
.accordion-section-title button.accordion-trigger:has(.menu-in-location) {
@@ -587,6 +589,7 @@ body.trashing #publish-settings {
587589
#customize-outer-theme-controls .accordion-section-title:after {
588590
content: "\f345";
589591
color: #a7aaad;
592+
pointer-events: none;
590593
}
591594

592595
#customize-theme-controls .accordion-section-content,

0 commit comments

Comments
 (0)