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

Fixed line-height unit check in font-size mixin. #14

Merged
merged 2 commits into from
Dec 6, 2017

Conversation

colourgarden
Copy link
Contributor

Previously, if non-unit value (inherit, normal) was sent through using the @include font-size() mixin then it would error. Fixed the conditional so it sets and fails correctly.

line-height: $line-height $important;
} @else if (unit($line-height) == "px") {
$line-height: $line-height / $font-size;
Copy link
Member

Choose a reason for hiding this comment

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

When is this variable output?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sun Good spot, thanks. Now fixed.

@sun sun merged commit 7656270 into master Dec 6, 2017
@sun sun deleted the font-size-mixin-fix-tom branch December 6, 2017 12:50
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.

2 participants