-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove the duplicated title in background, text and link views in Global Styles #35583
Conversation
Size Change: +116 B (0%) Total Size: 1.07 MB
ℹ️ View Unchanged
|
Yeah I didn't add it at first but it's important for custom colors I think |
Ah, good point. @pablohoneyhoney I feel like you may have thought about this. |
I updated the pickers to match the designs. I think the indicator as implemented right now works well for some colors but not for others, I wonder about if we should add a border or something like that. @jasmussen give it a try and feel free to tweak it. |
Yes, I didn't touch this one just removed the "custom" link and replaced with the color box. |
Nice, I didn't find myself missing the other piece 👍 👍 |
<> | ||
{ label } | ||
{ !! value && ( | ||
<ColorIndicator colorValue={ value } aria-label={ ariaLabel } /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would deleting the code that computes an accessible color label be an accessibility regression?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know for sure but I don't feel like it since that label is only read when the element is reached which is not the case here but.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. I guess we still need to work on replacing / consolidating the color indicator components (tracked in #35093), so probably adding solid accessible text should be done there as well
@ciampo Something a bit unrelated but I noticed that some CSS in JS styles are not working properly in the site editor (try applying an inline text color to some characters, you'll see that the color indicator in the popover has some CSS issues, I found related to HStack) |
I'll try to have a look later today, but there's a chance I won't manage (since I'll be AFK from tomorrow until November 8) [CC'ing @griffbrad @mirka and @diegohaz] |
What's the remaining things here? |
Thanks for your work here Riad! I've not reviewed yet the code, but started testing and noticed the below when no color is set.. Screen.Recording.2021-10-21.at.3.15.43.PM.mov |
@ntsekouras yes, I did that on purpose, what would you suggest? |
I guess I'd expect to see some kind of icon in GS list (0.15 in my above video) with `background, color, etc to indicate a color is not set 🤔 For the bar with the color preview, I think it's a bit big but I also think that it's better this way to avoid the layout shifts on set/unset. Also the |
@ntsekouras got it 👍 I used the same pattern I've used on the custom picker to fix that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and both interactions and code LGTM. Thanks Riad!
Related #34574
This does two small things: