WordPress.org

Make WordPress Core

Opened 8 months ago

Closed 6 months ago

#46531 closed defect (bug) (fixed)

CSS line-height values should be unitless - widgets.css

Reported by: ianbelanger Owned by: audrasjb
Milestone: 5.3 Priority: normal
Severity: normal Version:
Component: Widgets Keywords: has-patch good-first-bug commit
Focuses: ui, administration, coding-standards Cc:
PR Number:

Description

As outlined in #44643, CSS line-height values should be unitless unless necessary to be defined as a specific pixel value. It was suggested that we break up 44643 by stylesheet in order to better track them.

This ticket covers wp-admin/css/widgets.css

Note: The patch was tested only on a Windows machine in Chrome, Firefox, IE11 and Edge. As per https://core.trac.wordpress.org/ticket/44643#comment:23 it should probably be tested on other OS's and supported browsers.

Attachments (3)

46531.diff (934 bytes) - added by ianbelanger 8 months ago.
46531.2.diff (1001 bytes) - added by audrasjb 8 months ago.
Patch refresh
46531.3.diff (574 bytes) - added by ianbelanger 7 months ago.
Refreshes and updates patch with more precise line-height calculations

Download all attachments as: .zip

Change History (8)

@ianbelanger
8 months ago

#1 @audrasjb
8 months ago

  • Owner changed from ianbelanger to audrasjb
  • Status changed from assigned to reviewing

@audrasjb
8 months ago

Patch refresh

#2 @audrasjb
8 months ago

  • Component changed from General to Widgets
  • Keywords commit added; needs-testing removed
  • Milestone changed from Awaiting Review to 5.2
  • Status changed from reviewing to accepted

Thanks for the patch @ianbelanger
Patch tested, now refreshed and ready to go!

#3 @SergeyBiryukov
8 months ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 45053:

CSS Coding Standards: Use unitless values for line-height in wp-admin/css/widgets.css.

Props ianbelanger, audrasjb.
Fixes #46531. See #44643.

@ianbelanger
7 months ago

Refreshes and updates patch with more precise line-height calculations

#4 @ianbelanger
7 months ago

  • Milestone changed from 5.2 to 5.3
  • Resolution fixed deleted
  • Status changed from closed to reopened

#5 @SergeyBiryukov
6 months ago

  • Resolution set to fixed
  • Status changed from reopened to closed

In 45415:

CSS Coding Standards: Update unitless values for line-height in wp-admin/css/widgets.css with more precise calculations.

Props ianbelanger.
Fixes #46531.

Note: See TracTickets for help on using tickets.