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

Order of import matters?? #54

Open
jasongonzales23 opened this issue Jul 31, 2016 · 1 comment
Open

Order of import matters?? #54

jasongonzales23 opened this issue Jul 31, 2016 · 1 comment
Labels

Comments

@jasongonzales23
Copy link

When I import like this it works:

@value kardia-blue, darker-grey, kardia-green from "../../styles/variables/colors.css";

but in any other order the values are not imported.

It doesn't seem to correspond to the order in which they are used, nor defined.

I am using react-redux starter kit, which kind of rides the fence between sass and cssmodules, but I am using the framework only with cssmodules, so I don't think there should be an issue with that, but I could be totally wrong.

@jasongonzales23
Copy link
Author

Along similar lines, it breaks my build if I try to split a long @value import over more than one line.

Example follows:

@value inputExample, errorMsg, hasError, checkbox, checkBoxLabel, radioInput, buttonGroupLabel, buttonGroup, blueButton, defaultButton, defaultTextInput, formElement, formGroup, formGroupSubtext, whiteButton from '../styles/formElements.css';

Has to remain on one line. Well over 80 characters :\

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

No branches or pull requests

2 participants