- ๐ฎ๐ณIndia Kanchan Bhogade
Hi
have manually tested MR 598 on Drupal 10.3 version with Gin theme
The MR is applied Successfully...Vertical tab height is fixed for the dark mode.
The border color for light mode also darker.Attaching screenshot for reference
RTBC+1
Keeping in need review for code verification
- ๐ฎ๐ณIndia sandip
I have made the suggested changes and moving this issue to RTBC.
- ๐บ๐ธUnited States kentr Durango, CO
RE #69
Looking into Automatic Dark Mode further, my take is that the feature is just buggy. AFAICT, these are issues for it. It also appears to still be in a dev stage.
The only small nitpick i might have and i just noticed last night, in forced color mode the unchecked star border is yellow and the checked star is filled yellow. while in none forced color mode the checked star is blue which is in line with the forced color mode, since the color blue stands for links. but the unchecked star border is black / gray.
...
so i wonder shouldnt the star in the unchecked state also have a blue border for consistency and semantics?This is a good point. I was trying to follow @ckrina's colors in #16. Does this change need designer approval?
Hello @snehal-chibde,
Thank you for review. Iโve updated the MR. Iโve fixed the height of the content to match the height of all vertical tabs in dark mode for better consistency.
As mentioned in first bullet point in "Proposed resolution" I increased the contrast of --gin-border-color. However, I couldnโt directly adjust the contrast of --vertical-tabs-border-color as this variable is not defined in the Gin theme for light mode. I am adding the screenshots for both light and dark mode.Please have a look and let me know your thoughts.
- ๐ฎ๐ณIndia snehal-chibde
hello @utkarsh_kumar_singh, even i have tried this locally, I do not see any changes.
Added screenshots for reference. - ๐ฉ๐ชGermany rkoller Nรผrnberg, Germany
Followup for #68 ๐ Claro Shortcuts star fails WCAG Use of Color and Non-text contrast Needs work . The reason why the two star states were barely visible was my usage of the "enable automatic dark mode" setting in the edge rendering tab. Even though it uses also
prefers-color-scheme: dark
it is still behaving off. @kentr and I had a discussion and some further digging over in: https://drupal.slack.com/archives/C2ANFUGGG/p1746978093222529We still dont know the exact reason why the "enable automatic dark mode" setting is behaving differently output wise, but the following pen @kentr created illustrates the behaviro pretty well between the two approaches: https://codepen.io/kentr/full/XJJyerz (...and narrows down the cause to the
color-scheme
property as the key factor) .enable automatic dark mode
on the left andprefers-color-scheme: dark
on the right.the
color-scheme
property is not used in core so far (only gin uses it in a few places). therefore the suggestion for the way forward would be two fold, to open up a followup issue adding something like:root { color-scheme: light dark; }
to core in general as suggested in the almanac on css tricks ( https://css-tricks.com/almanac/properties/c/color-scheme/). that way all elements of the page/site get opted into both color schemes making those elements theme-able in the forced color mode. and for testing avoid "enable automatic dark mode" nevertheless, instead use the following two settings (here in microsoft edge)
And the star looks good with
prefers-color-scheme: dark
as well as all the available page color themes available. The only small nitpick i might have and i just noticed last night, in forced color mode the unchecked star border is yellow and the checked star is filled yellow. while in none forced color mode the checked star is blue which is in line with the forced color mode, since the color blue stands for links. but the unchecked star border is black / gray.so i wonder shouldnt the star in the unchecked state also have a blue border for consistency and semantics?
- ๐ซ๐ทFrance nod_ Lille
small feedback, unnecessary nesting. You can RTBC once it's fixed
- First commit to issue fork.
- ๐ฉ๐ชGermany rkoller Nรผrnberg, Germany
hm that is odd, i've tested MR11498 in Edge with high contrast mode on macos sequoia, the star in the screenshot in #58 ๐ Claro Shortcuts star fails WCAG Use of Color and Non-text contrast Needs work looks okay to me, but in my own testing the star is barely visible in each of the two states.
unchecked:
checked:
- ๐บ๐ธUnited States kentr Durango, CO
@smustgrave I think the version here is different than what @ckrina was thumbing up in #6.
There were several iterations. The latest before I worked on it had the "concentric" stars. I didn't use that version because of @ckrina's comment in #16 ๐ Claro Shortcuts star fails WCAG Use of Color and Non-text contrast Needs work :
Once zoomed, I do like the star inside the star emulating the radio styles, but at a smaller size (like the one we're using) it can look blurry or too "crowded". It would also introduce changes on the SVG depending on the size because a 2px spacing might be too much in smaller icons vs too small on the bigger ones, and I'd try to avoid that if possible. I think the contrast with the blue filled vs non-filled grey when it's not saved should be enough:
My version is closest to @ckrina's screenshots in #16. I added the little "+" and "x" in the corners of the hover versions.
Changed back to NR just in case.
- ๐บ๐ธUnited States smustgrave
Actually see in #6 ckrina gave the thumbs up.
- ๐บ๐ธUnited States smustgrave
Before
After
Does appear to address the failure
Waiting on a maintainer to make sure they're fine with the color change.