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 issue with lib-line-height mixin failing when value of 'normal'… #18168

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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