Problem/Motivation
This is part of the CSS modernization initiative.
Steps to reproduce
The stylesheet at https://git.drupalcode.org/project/drupal/-/blob/10.0.x/core/themes/claro/css/components/fieldset.pcss.css needs to be refactored to make use of modern CSS and Drupal core's PostCSS tooling.
Proposed resolution
Use CSS Logical Properties where appropriate
Use CSS nesting where appropriate
Remaining tasks
We need two patches. One for Drupal 9.5.x and one for Drupal 10.0.x
We need a followup issue to refactor this component in Drupal 10.0.x to make use of component-level CSS custom properties and remove IE specific style definitions.
User interface changes
None. There should be no visual differences.
Comment | File | Size | Author |
---|---|---|---|
#15 | 3303548-15.patch | 6.67 KB | Stanzin |
#12 | Screenshot 2023-06-29 at 10.12.39 AM.png | 239.65 KB | Gauravvvv |
#10 | interdiff-8_10.txt | 3.25 KB | Gauravvvv |
#3 | 3303548-version10.0.x.patch | 7.97 KB | Aditya4478 |
|
Comments
Comment #2
Aditya4478 CreditAttribution: Aditya4478 commentedComment #3
Aditya4478 CreditAttribution: Aditya4478 commentedComment #4
ckrinaComment #5
ckrinaComment #6
smustgrave CreditAttribution: smustgrave at Mobomo commentedBelieve this is postponed via our conversation a few weeks ago @ckrina. For the followup and a path forward
Comment #7
Aditya4478 CreditAttribution: Aditya4478 commentedComment #8
Stanzin CreditAttribution: Stanzin as a volunteer commentedComment #9
smustgrave CreditAttribution: smustgrave at Mobomo commentedCan we get before/after screenshots added to the IS please.
Comment #10
Gauravvvv CreditAttribution: Gauravvvv at Axelerant for Drupal India Association commentedI have fixed the selectors and short hand properties. Attached interdiff for same. So many wrong selectors were used in patch #8
Exp:
+--composite.fieldset__legend {
Comment #11
smustgrave CreditAttribution: smustgrave at Mobomo commentedCan we get screenshots please.
Comment #12
Gauravvvv CreditAttribution: Gauravvvv at Axelerant for Drupal India Association commentedI have added before and after patch screenshot.
Comment #13
smustgrave CreditAttribution: smustgrave at Mobomo commentedThanks!
Comment #15
Stanzin CreditAttribution: Stanzin as a volunteer commentedRe-Rolling patch. I think #10 patch is failed due to unrelated failure.
Comment #16
Aditya4478 CreditAttribution: Aditya4478 commentedLGTM !
Comment #18
smustgrave CreditAttribution: smustgrave at Mobomo commentedSeems random failure.
Comment #19
quietone CreditAttribution: quietone at PreviousNext commentedI'm triaging RTBC issues. I read the IS and the comments. I didn't find any unanswered questions but the proposed resolution is out of date.
Leaving at RTBC.
Comment #21
shweta__sharma CreditAttribution: shweta__sharma at OpenSense Labs commentedSeems random failure.
Comment #22
kostyashupenkoComment #25
nod_Committed f0ef38f and pushed to 11.x. Thanks!
Comment #26
lauriiiThere was a small regression to the fieldset styles. I opened separate issue for addressing that: #3396738: Regression in fieldset legend positioning. 😊