[wp-trac] [WordPress Trac] #53874: Bundled Themes: Measurement in 'px' is unnecessary

WordPress Trac noreply at wordpress.org
Sat May 11 16:47:30 UTC 2024


#53874: Bundled Themes: Measurement in 'px' is unnecessary
---------------------------+------------------------------------
 Reporter:  ankitmaru      |       Owner:  (none)
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Future Release
Component:  Bundled Theme  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:  css, coding-standards
---------------------------+------------------------------------

Comment (by sabernhardt):

 Twenty Twenty-One already had the `length-zero-no-unit` rule, excluding
 custom properties, and I added the CSS shorthand rule.
 {{{
 "length-zero-no-unit": [true, {"ignore": ["custom-properties"]}],
 "shorthand-property-no-redundant-values": true,
 }}}

 Twenty Nineteen and Twenty Twenty seem to require more than just adding
 the two rules to stylelint settings, so I did not add stylelint to those
 themes. Linting only found two values to change in Twenty Nineteen years
 ago, and those are fixed in the pull request.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53874#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list