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

Error if responsive mixins don't get a map #447

Merged
merged 1 commit into from
Jan 22, 2018

Conversation

36degrees
Copy link
Contributor

@36degrees 36degrees commented Jan 22, 2018

Add validation to the responsive spacing and typography mixins that expects maps, and errors if a user incorrectly passes in another value (for example, a value from the non-responsive spacing scale)

GitHub and Sublime Text are both struggling to correctly syntax-highlight @error calls for some reason, but it does work…

https://trello.com/c/OjWgpYkt/463-throw-errors-when-fe-spacing-mixins-used-wrong

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-447 January 22, 2018 09:12 Inactive
Add validation to the responsive spacing and typography mixins that expects maps, and errors if a user incorrectly passes in another value (for example, a value from the non-responsive spacing scale)
Copy link

@kr8n3r kr8n3r left a comment

Choose a reason for hiding this comment

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

nice.

@NickColley
Copy link
Contributor

Epic 👍

@36degrees 36degrees merged commit 78cf621 into master Jan 22, 2018
@36degrees 36degrees deleted the warn-using-wrong-mixins branch January 22, 2018 09:55
@alex-ju alex-ju mentioned this pull request Feb 20, 2018
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.

4 participants