Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
Claro theme
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
11 Jan 2023 at 17:07 UTC
Updated:
6 Mar 2024 at 00:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
bspeare commentedComment #3
royalpinto007Comment #5
royalpinto007Changes done:
- Replaced physical properties (left, right, etc.) with their logical equivalents (inline-start, inline-end, etc.)
- Combined multiple tablesort classes into one
If you have any feedback or questions, please let me know.
I would also like to contribute further by solving additional issues to align with the latest coding standards, if this works.
Comment #6
royalpinto007Comment #7
royalpinto007Please review the latest commit with the original file.
Comment #9
gauravvvv commentedFixed CCF in #6, and refactored the code.
Comment #10
smustgrave commentedSince this changes the .css file can we please get some before/after screenshots.
Thanks!
Comment #11
gauravvvv commentedAdded before and after patch screenshots. Please review

Before patch:
After patch:

Comment #12
royalpinto007Comment #13
smustgrave commentedThanks @Gauravvv
Comment #14
lauriiiLeft a comment on the MR. This should be manually tested on RTL too since there's some CSS specific to RTL.
Comment #15
gauravvvv commentedAddressed feedback over MR.
Attached after patch screenshot for RTL. Please review
Comment #16
smustgrave commentedThanks!
Comment #17
nod_The specificity of the selector is changed, there is no need to prefix the rules with
.tablesortComment #19
sourabhjainRemoved unused . tablesort class.
Comment #20
nod_another question in the MR
Comment #21
smustgrave commentedSeems background-color was changed back so should be good now.
Comment #22
nod_Need someone to test on windows in high contrast mode with a LTR and a RTL language to make sure the changes here work as intended.
Comment #23
nod_With screenshots too
Comment #24
mherchelGood catch asking to check this. Because of the specificity of the
[dir="rtl], the background image is showing above themask-imagein forced colors mode, making the arrow look kinda weird (as they're superimposed).I'll push some code shortly.

Comment #25
mherchelPushed a fix by flipping the
.tablesortelement. This also has the benefit of no longer needing the RTL version of the icon.Comment #26
smustgrave commentedUploading some screenshots
Everything looks good to me.
Comment #28
amber himes matzThe MR is currently blocked and needs to be rebased. Also, the version on the issue is 11.x-dev but the target branch on the MR is 10.1.x, so maybe the target branch on the MR needs to be updated as well? Just a bit of git-related cleanup required before this can be reviewed by a committer. Thank you!
Comment #29
gauravvvv commentedI have added patch for 11.x. Also I have made changes in
core/themes/claro/css/components/tables.pcss.cssfile, as we have renamed the sort-inactive icon. I have updated the name here as well. please reviewComment #30
amber himes matz@Gauravvvv Thanks for your attention to the “Needs reroll” tag, but this issue appears to be using an MR-based workflow, not a patch workflow. I realize that the “Needs reroll” tag could be confusing, when what is needed is a rebase on the merge request, not a patch file. Please refer to the docs on rebasing a merge request: https://www.drupal.org/docs/develop/git/using-gitlab-to-contribute-to-dr...
Also, it does look like there are a number of unresolved threads in the MR that should be marked as resolved if the feedback has been addressed.
Comment #31
smustgrave commentedIf the issue can be updated via the MR.
Comment #32
gauravvvv commentedNeed to change the target branch, Author can change it to 11.x
Comment #34
shmy commentedAs the rebase on 3332701-refactor-claros-tablesort-indicator is broken i did a new one on rebase-testing (sorry for the poor name). Someone who actually worked on the code should review the result. I run the
build:cssscript during every merge conflict resolution and after the final one alint:cssComment #35
shmy commentedComment #36
smustgrave commentedMR should be updated to point to 11.x or hidden and a new MR for 11.x be placed.
Comment #40
shweta__sharma commentedMerge request pipeline failed.
Comment #41
shmy commentedHere are screenshots for renamed
sort--inactive.svgimage tables.pcss.css file:Before (default):




After (default):
Before (forced-colors):
After (forced-colors):
The :is() selector doesn't work for me in neither Firefox or Chromium. I haven't worked with PostCSS before and i don't get why its added there. The following screenshots are made w/o the
:is()selector as there is no difference for me when set. I don't know if this is a different issue or i'm making something wrong.Before (RTL default):


After (RTL default):
Before (RTL forced-colors):


After (RTL forced-colors):
Comment #43
meeni_dhobale commentedI removed the @nest deprecated directive and solved the linting errors. Adding before and after screenshots.




RTL-Before
RTL-After
LTR-Before
LTR-After
Comment #44
smustgrave commentedThis looks correct based on the numerous screenshots.
Comment #46
nod_Committed 9e0ed31 and pushed to 11.x. Thanks!