-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Summary clicks #539
Summary clicks #539
Conversation
@Guillaumegranger1 would you maybe have time to review the approach ? Or let me know if I should get in touch with another designer 🙂 |
I like this a lot. There only seems to be an issue when I chose the |
Should be taken care of now. I was using the |
@svinkle if you want to have a look and see if there is any concerns in terms of color contrast. |
Expect text color contrast to be at least
There may be other instances and I didn't test all default colors.
|
I took a look and it seems good to me with the default colors. When trying the sales badge, you get a couple different color values for the white text. If I take the whitest part then it seems good: |
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.
This looks good 👍
@@ -140,6 +148,10 @@ h2, | |||
background-color: transparent; | |||
} | |||
|
|||
.button--secondary::selection { | |||
background-color: rgba(var(--color-base-outline-button-labels), 0.3); |
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.
Out of curiosity, do we also need to apply this in the base.css
?
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.
.button--secondary
in base.css
is setting the variable --color-button-text
to a new color.
And for .button::selection
the background color is set to the variable --color-button-text
. So it updates it automatically 👌
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.
LGTM
@svinkle let me know what you think. If you want to take another look maybe and give a 👍 or 👎 |
Why are these changes introduced?
Fixes #383
What approach did you take?
UseInstead we're thinking of customizing the background color uponuser-select: none;
::selection
. Check the issue's comment for more info.Other considerations
Demo links
Things to test
Try and select the text across the theme:
Checklist