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

rtl mis-parses border-color in a mixin #50

Open
JonathanDCohen opened this issue Oct 8, 2019 · 0 comments
Open

rtl mis-parses border-color in a mixin #50

JonathanDCohen opened this issue Oct 8, 2019 · 0 comments

Comments

@JonathanDCohen
Copy link

I'm using some polymer components in my electron app. We have some CSS that looks like:

paper-input {
   margin-top: -8px;
/* some other stuff */
  --paper-input-container-underline-focus: {
    border-color: white;
  }
/* more stuff */
}

After applying postcss-rtl it's split into two different paper-input blocks and the mixin is removed

paper-input {
  /* some stuff */
}
 paper-input {
  margin-top: -8px
   **border-color: white;**
}

The stray border-color goes away if I change that to be "color", but that isn't the right property for the job. If I put multiple properties alongside the border-color then just the border-color gets split out and the other properties remain inside the mixin.

I'm currently using rtl:ignore as a workaround since the styling is independent of direction, but someone else may have a different experience.

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

No branches or pull requests

1 participant