-
Notifications
You must be signed in to change notification settings - Fork 26.5k
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
UPDATE: Readme file update with specificity,Responsiveness and common pitfalls #3053
base: master
Are you sure you want to change the base?
Conversation
button: { | ||
color: "red", | ||
}, | ||
specialButton: { |
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.
why is this an improvement? .specialButton
targets a class, and specialButton
targets a nonexistent tag name. did you mean 'button.specialButton'
?
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.
specialButton in the second is just a property to styles. It is not a class we pass it using styles.specialButton. It is a css-in-js syntax
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.
can you elaborate? I’m not familiar with any css-in-js solution that conflates tag names and class names in this way.
button: { | ||
color: "red", | ||
}, | ||
specialButton: { |
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.
specialButton: { | |
'button.specialButton': { |
buttonActive: { | ||
color: "green", | ||
}, | ||
buttonInactive: { |
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.
again, should these be class names?
No description provided.