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

Compatibility with third party plugins #44

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

Conversation

ChangeSomeCode
Copy link

Hi!

I got a problem when is specified a implicit value. For example, through the use of variables or mixins:

:root {
  --min-max: 320px 1440px;
}

@define-mixin font $minFontSize, $maxFontSize {
  font-size: responsive $minFontSize $maxFontSize;
  font-range: var(--min-max); 
}

h1 {
  @mixin font 36px, 36px;
}

the plugin takes a value in font-range that has not yet been processed - the string var(--min-max) and tries to calculate it. Now the value var(--min-max) is first converted by thrid party plugin to the 320px 1440px and only then the postcss-responsive-type plugin will be applied

new call method is performed by condition in options

@ChangeSomeCode
Copy link
Author

fix for #33

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.

1 participant