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

Allow using element inside modifier #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bgilhome-lds
Copy link

In some backend systems, a modifier is applied to the block and not an element. In this case, it would be useful to be able to write:

@block foo {
  @modifier bar {
    @element baz {
      background: red;
    }
  }
}

To compile to:

.foo--bar .foo__baz {
  background: red;
}

The PR achieves this, but might be better as an option (apply modifier to block or element).

…r to the block and nest the element selector inside.
@tbremer
Copy link
Owner

tbremer commented Jun 8, 2021

Thanks for the PR! Just wanted to acknowledge that I have seen it. I need to look at it a bit more closely though. Work is a bit busy, but hopefully within the next couple of days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants