Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

FAQ: What if some styles only apply to 1 element type? #220

Closed
mikeybinns opened this issue Mar 3, 2022 · 0 comments
Closed

FAQ: What if some styles only apply to 1 element type? #220

mikeybinns opened this issue Mar 3, 2022 · 0 comments

Comments

@mikeybinns
Copy link

For example, if I have button.button and a.button, the button a tag will have an underline. I know I could add this to the .button class, but then the button class would have to be more explicit and the more classes it has, the harder it might be to change in the future.
Would it make sense in this case to add any resets to a.button instead of .button?

From:

/* all button styles */
.button {
    border: 1px solid;
    text-decoration: none;
}

to

/* actual button styles */
.button {
    border: 1px solid;
}
/* single element reset styles */
a.button {
    text-decoration: none;
}
@getbem getbem locked and limited conversation to collaborators Sep 12, 2022
@floatdrop floatdrop converted this issue into discussion #226 Sep 12, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant