- @hotsaucedesign opened merge request.
- Status changed to Needs review
almost 2 years ago 9:30am 22 February 2023 - 🇮🇳India gauravvvv Delhi, India
I have attached the patch and before/after screenshots for reference. please review
Before patch:
After patch:
- Status changed to RTBC
almost 2 years ago 7:41pm 22 February 2023 - 🇺🇸United States smustgrave
Patch #5 appears good.
Thanks for the screenshots!
- @hotsaucedesign opened merge request.
- Status changed to Needs review
almost 2 years ago 9:17pm 22 February 2023 - 🇺🇸United States hot_sauce
@Gauravvv
Thank you for the work on your patch. I was working on an MR as part of Florida DrupalCamp last week and got around to finally pushing it up today.
In comparing my MR with your patch, I think there is still room for improvement on this to help modernize the CSS more.
- For
.pager__link, .pager__item--current
we can do more conversion to CSS Logical properties by changingmin-width
andheight
tomin-inline-size
andblock-size
respectively- We can move the CSS variables out of
:root
and into the.pager
class since all of these will apply to anything within pager since it's best practice to not use:root
if we don't have to- In addition, the naming conventions for the
pager
variables wasn't consistent. Some used one - and some used two, so I adjusted that for consistency sake.- We can also make CSS variables out of the background images for the
.pager__item
classes, and then further consolidate the@media (forced-colors: active)
query to use these for themask-image
as well like this.pager__item--first .pager__link::before { --background-image: url(../../images/icons/545560/pager-first.svg); } .pager__item--previous .pager__link::before { --background-image: url(../../images/icons/545560/pager-prev.svg); } .pager__item--next .pager__link::after { --background-image: url(../../images/icons/545560/pager-next.svg); } .pager__item--last .pager__link::after { --background-image: url(../../images/icons/545560/pager-last.svg); } .pager__item--first .pager__link::before, .pager__item--previous .pager__link::before, .pager__item--next .pager__link::after, .pager__item--last .pager__link::after { position: relative; display: inline-block; inline-size: 1rem; block-size: 1rem; content: ""; background-image: var(--background-image); background-repeat: no-repeat; background-position: center; } @media (forced-colors: active) { .pager__item--first .pager__link::before, .pager__item--previous .pager__link::before, .pager__item--next .pager__link::after, .pager__item--last .pager__link::after { background-color: linktext; background-image: none; mask-image: var(--background-image); mask-repeat: no-repeat; mask-position: center; } }
This is, admittedly, my first contribution to Drupal directly but I think that with some tweaking between the patch and the MR we can find the best solutions here.
- 🇮🇳India gauravvvv Delhi, India
Hi @hotsaucedesign, You have assigned the issue to yourself and there were no updates for the last 5 days. So I picked up the issue. I will make sure to ask first then only I will pick issues. thankyou
- Status changed to RTBC
over 1 year ago 7:37pm 28 February 2023 - 🇺🇸United States smustgrave
Nesting looks good. Adding some screenshots to show they have not broken anything (that I see).
- Status changed to Needs work
over 1 year ago 8:27am 4 March 2023 - Status changed to RTBC
over 1 year ago 1:54am 8 March 2023 -
ckrina →
committed 30a1e232 on 10.1.x
Issue #3332430 by hot_sauce, Gauravvvv, smustgrave, Stockfoot, lauriii:...
-
ckrina →
committed 30a1e232 on 10.1.x
- Status changed to Fixed
over 1 year ago 2:28pm 13 March 2023 - 🇪🇸Spain ckrina Barcelona
Committed 30a1e23 and pushed to 10.1.x. Thanks!
Note about the unresolved comment by @lauriii about the background image: the answer given by @hot_sauce about making it easier to theme
forced-colors
made sense to me, plus discussed with @lauriii and he's OK with the existing state. Automatically closed - issue fixed for 2 weeks with no activity.