The current details stylesheet doesn't make use of PostCSS nesting, custom properties, etc.
We can refactor this to make the code more portable, modular, and readable.
| Comment | File | Size | Author |
|---|---|---|---|
| #18 | Refactor after1.png | 57.83 KB | sagarmohite0031 |
| #18 | Refactor after.png | 46.27 KB | sagarmohite0031 |
| #12 | Screenshot 2023-03-20 at 3.19.49 PM.png | 132.14 KB | smustgrave |
| #12 | Screenshot 2023-03-20 at 3.19.44 PM.png | 102.23 KB | smustgrave |
| #9 | 3312636-9.patch | 10.43 KB | gauravvvv |
Issue fork drupal-3312636
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:
Comments
Comment #2
mherchelComment #3
mherchelComment #4
mherchelRe-roll within minor changes attached.
Minor changes
Comment #6
mherchelRandom test failures are no longer failing. This is ready for review.
Comment #7
ckrinaLGTM!
Comment #8
lauriiiWhy are we changing the transition?
This slightly changes the margin inside the details. I think this looks better with the value before the change because the elements inside the wrapper are aligned with the summary.
Comment #9
gauravvvv commentedAddressed #8, attached patch for same.
Comment #10
mherchelIs there an interdiff to see what changed?
Comment #11
gauravvvv commentedI tried applying patch #4, but I was getting an error. That's why didn't provided interdiff.
I have replaced
transition: background-color 0.2s;withAlso, replaced
margin: calc(2 * var(--details-spacing-unit)) calc(1.5 * var(--details-spacing-unit));withmargin: var(--sp1-5) var(--sp2);in the patch.Comment #12
smustgrave commentedTested out by enabling Olivero when creating content
When to node/add/page
The details section doesn't seem broken. Here's a few screenshots but let me know if there's another section to check.
Comment #17
saurav-drupal-dev commentedCreate MR from patch
312636-9.patchComment #18
sagarmohite0031 commentedHello,
Tested and verified before applying MR.
Not able to reproduce issue looks good to me.
Attaching screenshots.
Comment #19
smustgrave commented@sagarmohite0031 there is not a need for additional screenshots when the ticket already has them. #12 I added screenshots and there's been no change since. Thanks
Restoring previous status.
Comment #20
nod_small nit left, it's a bit longer but it's more consistent.