Skip to content
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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Sandhya-Madhuri
Copy link

@Sandhya-Madhuri Sandhya-Madhuri commented Oct 13, 2024

No description provided.

@Sandhya-Madhuri Sandhya-Madhuri changed the title UPDATE: Readme file update with specificity,Responsiveness and Common… UPDATE: Readme file update with specificity,Responsiveness and common pitfalls Oct 13, 2024
button: {
color: "red",
},
specialButton: {
Copy link
Collaborator

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'?

Copy link
Author

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

Copy link
Collaborator

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: {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
specialButton: {
'button.specialButton': {

Comment on lines +582 to +585
buttonActive: {
color: "green",
},
buttonInactive: {
Copy link
Collaborator

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?

@ljharb ljharb marked this pull request as draft October 14, 2024 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants