Within the new PostCSS for the off-canvas dialog, we neglected to include an ampersand (&) within a nested PostCSS block (see https://git.drupalcode.org/project/drupal/-/blob/10.0.x/core/misc/dialog...).
There are no differences in the visual styles because the values fall back from the correct CSS custom property to the the same value via inheritance. That being said, when someone extends the styles, the link colors may not match as expected.
Issue fork drupal-3314574
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3314574-10.1.x
changes, plain diff MR !3157
- 3314574-invalid-postcss-causes
changes, plain diff MR !2944
Comments
Comment #2
mherchelComment #6
rpayanmPlease review.
Comment #7
mherchelThanks for the patch @rpayanm, but you also need to add the compiled CSS to the MR. You can generate this by running
yarn build:cssfrom the/coredirectoryComment #8
rpayanm@mherchel Thank you so much!
I used that command and pushed my changes, please review it.
Comment #10
rpayanmI created a new branch because I did the last one, and it looked weird lol
It also needed a rebase.
Comment #12
diegorsI did the rebase, still need review.
Comment #14
xjmAs a change to module CSS, this should be minor-only.
There seem to be two merge requests open against this issue, both of them against 10.1.x. However, one of them looked like a bad merge with hundreds of unrelated changes, so I closed it.
Comment #15
xjmIt would be good to have before-and-after manual testing of the links in the affected off-canvas markup. Since this is changing CSS output by
core/misc, I think that means we also need to check all of Claro, Olivero, Classy, Stable 9, and Starterkit to see if they need the same fix.Comment #16
smustgrave commentedThink it would help to know where this appears?
Tried testing in layout builder but the markup doesn't go
#drupal-off-canvas-wrapper summary a
but
#drupal-off-canvas-wrapper summary span
Comment #17
longwaveClosing as duplicate of #3361839: Accidental use of CSS nesting in misc/dialog/off-canvas/css/details.css