#62443 closed defect (bug) (duplicate)
Horizontal overflow on customizer panel allows horizontal scrolling
| Reported by: | kharisblank | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Customize | Version: | 6.7 |
| Severity: | normal | Keywords: | has-screenshots has-test-info has-patch |
| Cc: | Focuses: | ui, accessibility, css |
Change History (8)
This ticket was mentioned in PR #7811 on WordPress/wordpress-develop by @sainathpoojary.
2 years ago
#3
- Keywords has-patch added
Trac ticket: #62443
This PR addresses the issue of horizontal overflow in the customizer panel, which was causing unintended horizontal scrolling. The overflow issue has been resolved by modifying the overflow-x to ensure the panel content stays within the bounds of the viewport.
#4
in reply to: ↑ 2
@
2 years ago
Hey @kharisblank,
I have created a pull request with a solution which fixes this issue.
@kharisblank commented on PR #7811:
2 years ago
#5
Hi @SainathPoojary,
Thanks for your attempt to fix this issue with your code addition, which visually resolves it.
However, upon further inspection, the root of this issue may be related to previous accessibility improvement for accordion component. See this CSS update for reference.
This added extra padding in that code part makes the customizer control button a little longer than usual.
padding: 10px 10px 11px 14px;
That being said, the better fix would be adding box sizing to the button:
.accordion-section-title button.accordion-trigger {
box-sizing: border-box;
}
What do you think?
@sainathpoojary commented on PR #7811:
2 years ago
#6
Hi @kharissulistiyo ,
Thank you for your feedback and for pointing out the root cause.
I agree that adding box-sizing: border-box; to the button is a more robust solution to ensure the customizer control button sizing remains consistent, and it should resolve the overflow issue without impacting the layout further.
I’ll update the code to include this change. Thanks again for the suggestion!
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)


Hi @kharisblank,
Thank you for bringing this up. I tested it and was able to successfully reproduce the issue.