-
Notifications
You must be signed in to change notification settings - Fork 50
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
Create styled radio button #64
Conversation
@JordanSjodinFaithlife That does seem to also happen on Checkbox (which I copied), I'll see if I can't figure out what's causing it. |
@@ -22,6 +22,10 @@ export const CheckboxContainer = styled.button` | |||
min-height: 16px; | |||
background: transparent; | |||
|
|||
&:active { | |||
color: buttontext; |
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 is my solution to the "white flash" that Safari has for these. By default Safari applies "activebuttontext" color to buttons with the ":active" pseudo-class. I'm not convinced this is the best idea, however because we're now enforcing a "buttontext" color on these controls. This makes one additional step to coloring the text of these elements, though it's arguably more discoverable than the Safari thing because it will act the same in all browsers.
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.
@dustinsoftware is there a more "styled-ui" way of doing this, in your opinion?
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.
If we need to we can revisit the text color. I’m fine with it as is.
No description provided.