Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

Feature Request: Suppress @component prefixing #73

Closed
SLaks opened this issue Dec 9, 2015 · 2 comments
Closed

Feature Request: Suppress @component prefixing #73

SLaks opened this issue Dec 9, 2015 · 2 comments

Comments

@SLaks
Copy link
Contributor

SLaks commented Dec 9, 2015

There are many cases where I want to style a component-prefixed class iff it's contained within a different, non-component-prefixed class. Currently, this requires that you drop the component entirely.

Proposed syntax:

@component "blah" {
  .^GlobalState .%LocalState {
    color: red;
  }
}

Output:

.GlobalState .BlahLocalState {
  color: red;
}

I use ^ since it's after % on the keyboard, and to match regex conventions (signifying that this is the actual beginning of the classname).

Open question: In .^A .B, should .B be prefixed? I think not, for consistency.

@SLaks
Copy link
Contributor Author

SLaks commented Dec 9, 2015

Once we agree on a syntax, I will implement this

iflan pushed a commit that referenced this issue Mar 9, 2016
Fixes issue #73.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=110368380
@iflan
Copy link
Member

iflan commented Jun 7, 2016

I believe this is closed now.

@iflan iflan closed this as completed Jun 7, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants