Active
Project:
Drupal core
Version:
main
Component:
Claro theme
Priority:
Normal
Category:
Plan
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
29 Nov 2022 at 16:37 UTC
Updated:
20 Jun 2024 at 14:00 UTC
Jump to comment: Most recent
A big part of the CSS styles from Claro come from Seven and are outdated. They don’t take into account current practices in Drupal core, modern CSS features, and the use of PostCSS.
Update according to the new CSS coding standards.
(@todo change with the final drupal.org link when approved)
Open an issue per each component and update the CSS.
Comments
Comment #2
ckrinaComment #3
quietone commentedNice to see the progress!
Making changes by file is going to result in lots of issues and make it more difficult for the reviewers and committers. If it were done by type of change it makes the review process much easier because the reviewer only has to think about one standard, not many. So, this should be done by type of change. For example, have an issue to fix indentation in all files. And another to fix something else. This is the way PHP coding standards changes are made in core, that is, by rule not file.
What is in place to prevent the coding standard errors from creeping back in?
Comment #4
mherchelI personally disagree here (but will defer to @ckrina). Because of the nature of CSS, these changes are very hard to properly QA. We need to be very granular with our issues so we can make regular progress. If we do multiple mega-patches, it'll be difficult to both QA and see the relationships between the removed and added code. My fear is that this would cause the issue to get bogged down and eventually abandoned.
We're in the process of documenting our current coding practices in #3324368: Update CSS coding standards to include PostCSS and Drupal 10. That'll help, plus the review process.
Comment #5
ckrinaThanks @quietone for the feedback (and @nod_ in Slack)! We initially defined this process based on @mherchel's and others experience on Olivero's refactoring. The experience I've had with changes across the code are color changes in Claro and the manual review was so complex that nobody felt confortable giving +1 and it took ages to get it done. I like the approach per component because it’s way more granular and when reviewing you just have to manually check the places this component will appear: I think it will be easier to define testing instructions and get reviews this way.
That said, I really don’t have a strong opinion and I’d be happy to switch the strategy if everybody else votes for the other approach.
Comment #6
ckrinaWe need to define what we need to change per file first until we start committing work. Initial list of task per issue:
:rootCSS variables into the component where appropriateOpen to suggestions!
Comment #7
ckrinaComment #8
anoopsingh92Comment #9
anoopsingh92Comment #10
anoopsingh92Comment #11
anoopsingh92Comment #12
morganlyndel commentedComment #13
stockfoot commentedComment #14
stockfoot commentedComment #15
stockfoot commentedComment #16
stockfoot commentedComment #17
stockfoot commentedComment #18
stockfoot commentedComment #19
stockfoot commentedComment #20
stockfoot commentedComment #21
stockfoot commentedComment #22
stockfoot commentedComment #23
stockfoot commentedComment #24
stockfoot commentedComment #25
stockfoot commentedComment #26
stockfoot commentedComment #27
stockfoot commentedComment #28
stockfoot commentedComment #29
stockfoot commentedComment #30
stockfoot commentedComment #31
stockfoot commentedComment #32
stockfoot commentedComment #33
stockfoot commentedComment #34
stockfoot commentedComment #35
stockfoot commentedComment #36
stockfoot commentedComment #37
stockfoot commentedComment #38
stockfoot commentedComment #39
stockfoot commentedComment #40
stockfoot commentedComment #41
stockfoot commentedComment #42
stockfoot commentedIt appears that
wide-image.pcss.cssandwide-image.cssonly exist in the Olivero theme and not the Claro theme.I could also not locate the
quickedit.pcss.cssfile.Let me know if there is a specific location for these files, and I will happily finish off the last three child issues. Thank you!
Comment #43
ckrinaRemoved unnecessary wide-image.css item from the list.
Comment #45
ckrinaCleaning the IS to list the missing ones.
Comment #46
ckrinaComment #47
ckrinaNew fixed ones.
Comment #48
meeni_dhobale commentedComment #49
meeni_dhobale commentedComment #50
smustgrave commentedAppear to be in the home stretch with the last few remaining Congrats to everyone