Opened 13 days ago
Closed 13 days ago
#66444 closed defect (bug) (fixed)
Customizer section title headings are shorter than the back button
| Reported by: | sabernhardt | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.2 |
| Component: | Customize | Version: | trunk |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
Changeset 63966 replaced the line-height of 26 pixels for Customizer section headings with a unitless value of 1.3. The headings have a font size of 20px, but the .customize-action span's font size is only 13px, reducing its line-height to 16.9 pixels and the overall heading height to 64.9 pixels. The back button has a fixed height of 74 pixels.
Attachments (2)
Change History (5)
#1
@
13 days ago
The patch could take a few different directions, and the first is probably the best option:
- Use
line-height: 2for the.customize-actionspans (including#customize-controls .customize-section-title span.customize-action). - Use
line-height: 1.3emfor the headings, and add a comment for linting tools to ignore the unit. - Restore the
line-heightof26px, and add the linting comment. - Reduce the button height, which likely involves editing the
line-heightanyway to calculate an integer value.
This ticket was mentioned in PR #15379 on WordPress/wordpress-develop by @sainathpoojary.
13 days ago
#2
- Keywords has-patch added; needs-patch removed
Sets line-height: 2 on the small label above Customizer section titles. This restores the heading height to 74px, matching the back button.
Trac ticket: #66444
Heading and button were both 74 pixels tall in WordPress 7.1