Skip to content

Commit

Permalink
Fixed issue with lib-line-height mixin failing when value of 'normal'…
Browse files Browse the repository at this point in the history
… is passed
  • Loading branch information
Chris Nanninga committed Sep 20, 2018
1 parent 50a4da0 commit 09ce6c9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/web/css/source/lib/_typography.less
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
}

// Rem line height
.lib-line-height(@heightValue) when not (@heightValue = false) and not (ispercentage(@heightValue)) {
.lib-line-height(@heightValue) when not (@heightValue = false) and not (@heightValue = normal) and not (ispercentage(@heightValue)) {
.lib-font-size-value(@heightValue);
.lib-css(line-height, @fontValue);
}
Expand All @@ -46,6 +46,10 @@
.lib-css(line-height, @heightValue);
}

.lib-line-height(@heightValue) when (@heightValue = normal) {
.lib-css(line-height, @heightValue);
}

.lib-wrap-words() {
overflow-wrap: break-word;
word-wrap: break-word;
Expand Down

0 comments on commit 09ce6c9

Please sign in to comment.