-
Notifications
You must be signed in to change notification settings - Fork 17
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
What about the ancestors (or ascendants) of a component? How would it be? #5
Comments
Hi 😄 How I would do it:
|
Hello. That's exactly what I did. 😄 What you think of including this case to your repo? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello man!
First of all, great compilation, congratulations for your efforts. I also really like styleguides, rules, like yours.
I was thinking of a case today which it may be interesting of debating it with you. What about a case where my component is like, a ribbon. You know, in the corner of an element. I was thinking in some markup like this:
In this case, the ribbon-container is an ancestor/ascendant of the component, and not a descendant. How would you suggest it to be marked up?
ribbon-container
?ribbon__container
? I never read too much about BEM and this kind of suggestions so if you know something about it, it would be interesting listening to you.Happy to contribute somehow. My best wishes. Regards, Gio. Oh, by the way, I'm also a brazilian, so if you'd prefer to discuss it in portuguese, feel free to do that.
The text was updated successfully, but these errors were encountered: