WordPress.org

Make WordPress Core

Changeset 50388


Ignore:
Timestamp:
02/18/2021 08:44:24 PM (10 months ago)
Author:
ryelle
Message:

Twenty Twenty-One: Add the px unit to the admin bar height custom property.

The admin bar height custom property is used in calc functions, which require consistent unit use, even when the value is zero. A unitless value returns an invalid value for the "height" property, where this variable is used. This also changes the stylelint rule in the theme to allow zero values with a unit, just in custom properties.

Props nico23.
Fixes #52564.

Location:
trunk/src/wp-content/themes/twentytwentyone
Files:
5 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.