Closed (fixed)
Project:
Drupal core
Version:
10.1.x-dev
Component:
Claro theme
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Jan 2023 at 21:07 UTC
Updated:
6 Mar 2023 at 08:44 UTC
Jump to comment: Most recent
This is a child of #3324398: [META] Update Claro CSS with new coding standards and part of #3254529: [PLAN] Drupal CSS Modernization Initiative.
The stylesheet at https://git.drupalcode.org/project/drupal/-/blob/10.0.x/core/themes/clar... needs to be refactored to make use of modern CSS and Drupal core's PostCSS tooling.
@todo: Add clear testing instructions to test this manually on the UI.
variables.pcss.css) where appropriate. Follow the proposed Drupal CSS coding standards to name the variables.font-size: 1.23rem; /* @todo One off value. */.entity-meta {
--entity-meta-title-font-size: var(--font-size-h5);
... more style
}
.entity-meta__title {
font-size: var(--entity-meta-title-font-size);
}Out of scope
None. There should be no visual differences.
Please post before/after screenshots and make sure they look the same.
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:
Comments
Comment #2
gauravvvv commentedComment #4
gauravvvv commentedComment #5
smustgrave commentedReviewed MR 3395.
Confirmed the nesting looks correct.
colors replaced with variables.
Fact that the .css is unchanged shows nothing should have broken.
Comment #6
bnjmnmLeft two comments in MR. Also, issue summary mentions "Please post before/after screenshots and make sure they look the same." so that should happen too. Since focus/hover is in the CSS that should be accounted for in the screenshots.
Enjoy this rare instance of me requesting screenshots instead of yelling about there being too many of them.
Comment #7
gauravvvv commented@bnjmnm As CSS file remains unchanged, I don't think so we need screenshots here.
Comment #8
gauravvvv commentedAddressed all the feedbacks. Please review
Comment #9
smustgrave commentedChanges look good. Think the failure was random but ran again to be sure.
Will remove credit from myself as I did a rebase to make sure they passed. Will let committers decide to add back or not.
Comment #11
lauriiiCommitted 93f6a23 and pushed to 10.1.x. Thanks!