[wp-trac] [WordPress Trac] #56242: Problem with Core CSS

WordPress Trac noreply at wordpress.org
Mon Jul 18 17:08:14 UTC 2022


#56242: Problem with Core CSS
----------------------------+----------------------------------------
 Reporter:  mrsoheilsani    |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Editor          |     Version:  6.0
 Severity:  normal          |  Resolution:
 Keywords:  move-to-github  |     Focuses:  ui, css, coding-standards
----------------------------+----------------------------------------
Changes (by sabernhardt):

 * keywords:  needs-design-feedback => move-to-github
 * component:  General => Editor


Old description:

> Problem in block asset in
> /wp-includes/css/dist/block-library/style.min.css?ver=6.0.1
>
> Code:
> .wp-block-columns {
>     align-items: normal!important;
> }
>
> The !important tag on align-items seems not necessary. It just makes
> compatibility problems with third-party plugins and custom CSS codes.

New description:

 Problem in block asset in
 `/wp-includes/css/dist/block-library/style.min.css?ver=6.0.1`

 Code:
 {{{
 .wp-block-columns {
     align-items: normal!important;
 }
 }}}

 The `!important` tag on `align-items` seems not necessary. It just makes
 compatibility problems with third-party plugins and custom CSS codes.

--

Comment:

 Hi and welcome to Trac!

 Because this involves the block editor, the report belongs on the
 [https://github.com/WordPress/gutenberg/issues/new/choose Gutenberg GitHub
 Repository]. Could you open a new issue?

 A
 [https://github.com/WordPress/gutenberg/blob/8011374a3b7f17e21c7515375bc775e50d2e6888/packages
 /block-library/src/columns/style.scss#L13 comment in the SCSS file]
 explains that `!important` overrides inline styles in
 [https://github.com/WordPress/gutenberg/commits/trunk/lib/block-
 supports/layout.php Layout block supports], but maybe there is a better
 option.

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


More information about the wp-trac mailing list