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

no-conflict version of shared component styles #18

Merged
merged 6 commits into from
Dec 4, 2015

Conversation

pandafulmanda
Copy link
Contributor

No description provided.

}
// The following are usually overlays on other icons
.icon-correct { .x-icon-bg(correct); }
.icon-incorrect { .x-icon-bg(incorrect); }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is fine for now, however a thought occurs to me.

Since react-components is shared between projects, it's non-optimal that Tutor has the icon definitions for ConceptCoach and vice-versa.

Perhaps we should make a mixin that the client app could call that would auto generate all these definitions. Something like: @openstax-icons( feedback, exercise, homework, event, end, ... );

The actual mixin is left was an exercise for the reader :) It sucks that it's so difficult to loop in less but http://stackoverflow.com/questions/26585733/less-mixin-how-to-loop-through-passed-in-arguments has examples.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

umm, less/less.js#1857 😄

@nathanstitt
Copy link
Member

Overall makes sense and looks good. we can chat about the &- stuff whenever your available

@pandafulmanda pandafulmanda mentioned this pull request Dec 4, 2015
philschatz added a commit that referenced this pull request Dec 4, 2015
no-conflict version of shared component styles
@philschatz philschatz merged commit 6a1ced3 into master Dec 4, 2015
@philschatz philschatz deleted the fix/styles-wrapping branch December 4, 2015 22:45
@philschatz
Copy link
Member

Keeping as-is and discussing &- after monday (maybe sprint post-mortem) 😄

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

Successfully merging this pull request may close these issues.

3 participants