[wp-trac] [WordPress Trac] #55276: :where is easily being overridden
WordPress Trac
noreply at wordpress.org
Mon Feb 28 16:20:17 UTC 2022
#55276: :where is easily being overridden
--------------------------+-----------------------------
Reporter: vijayhardaha | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.9.1
Severity: normal | Keywords:
Focuses: css |
--------------------------+-----------------------------
Found an issue in the forum https://wordpress.org/support/topic/button-
issue-with-theme-twenty-twenty-and-version-5-9-1/
when I investigated the issue, I noticed the change that
{{{
.is-style-outline>.wp-block-button__link,.wp-block-button__link.is-style-
outline {
border: 2px solid;
padding: .667em 1.333em
}
}}}
is changed to
{{{
.is-style-outline>:where(.wp-block-button__link),:where(.wp-block-
button__link).is-style-outline {
border: 2px solid;
padding: .667em 1.333em
}
}}}
`:where` is being used in the new version. But from this change it's
priority is lower than `.wp-block-button__link` normal single class `.wp-
block-button__link` is easily overriding that block editor CSS that have
`:where` now.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55276>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list