Make WordPress Core

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)

Customizer-section-heading-7.1.png​ (4.9 KB ) - added by sabernhardt 13 days ago.
Heading and button were both 74 pixels tall in WordPress 7.1
Customizer-section-heading-7.2.png​ (5.0 KB ) - added by sabernhardt 13 days ago.
Heading is only 64.9 pixels in WordPress 7.2-beta

Download all attachments as: .zip

Change History (5)

@sabernhardt
13 days ago

Heading and button were both 74 pixels tall in WordPress 7.1

@sabernhardt
13 days ago

Heading is only 64.9 pixels in WordPress 7.2-beta

#1 @sabernhardt
13 days ago

The patch could take a few different directions, and the first is probably the best option:

  1. Use line-height: 2 for the .customize-action spans (including #customize-controls .customize-section-title span.customize-action).
  2. Use line-height: 1.3em for the headings, and add a comment for linting tools to ignore the unit.
  3. Restore the line-height of 26px, and add the linting comment.
  4. Reduce the button height, which likely involves editing the line-height anyway 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.

Before:
https://github.com/user-attachments/assets/7ad445b5-78bd-4171-af9c-8ea614b04db7

After:
https://github.com/user-attachments/assets/5cbe1e96-b17e-4ad0-8af3-28ab507fadca

Trac ticket: #66444

#3 @SergeyBiryukov
13 days ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → closed

In 65209:

Customize: Correct section heading height to match the back button.

Sets line-height: 2 on the small label above Customizer section titles. This restores the heading height to 74px, matching the back button.

Developed in ​https://github.com/WordPress/wordpress-develop/pull/15379.

Follow-up to r63966.

Props sainathpoojary, sabernhardt.
Fixes #66444.

Note: See TracTickets for help on using tickets.