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

Make Sass imports less broad #617

Merged
merged 23 commits into from
Mar 28, 2018
Merged

Make Sass imports less broad #617

merged 23 commits into from
Mar 28, 2018

Conversation

kr8n3r
Copy link

@kr8n3r kr8n3r commented Mar 23, 2018

This PR replaces globals/common import in each component with only the necessary partials.
There is already a test that checks if individual component Sass files compile.

Note: i've placed typography partials at the end of imports to make it a bit easier to do the work of making typography imports conditional.

https://trello.com/c/unO51Rno/830-make-sass-imports-dependencies-less-broad

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-617 March 23, 2018 09:59 Inactive
Copy link
Contributor

@alex-ju alex-ju left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍

@NickColley
Copy link
Contributor

Seems fine to me, the main problem is that we were importing files that output CSS.

So could solve this by chunking the imports better too.

@kr8n3r kr8n3r force-pushed the make-sass-imports-less-broad branch from 3af484d to 9d6282a Compare March 26, 2018 16:01
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-617 March 26, 2018 16:01 Inactive
@kr8n3r kr8n3r force-pushed the make-sass-imports-less-broad branch from 9d6282a to edb0de5 Compare March 28, 2018 11:53
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-617 March 28, 2018 11:53 Inactive
@kr8n3r kr8n3r force-pushed the make-sass-imports-less-broad branch from edb0de5 to 32334d4 Compare March 28, 2018 12:46
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-617 March 28, 2018 12:47 Inactive
@kr8n3r kr8n3r force-pushed the make-sass-imports-less-broad branch from 32334d4 to e3e28c8 Compare March 28, 2018 12:48
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-617 March 28, 2018 12:48 Inactive
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.

None yet

4 participants