Skip to content

Commit

Permalink
fix(typography): conditionally remove important from utility mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed May 8, 2020
1 parent 3393f40 commit c11ae35
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/vuetify/src/styles/settings/_utilities.scss
Expand Up @@ -398,6 +398,10 @@ $utilities: map-deep-merge(
text-transform
),
class: text,
unimportant: (
font-weight,
line-height
),
values: $typography
)
),
Expand Down
6 changes: 5 additions & 1 deletion packages/vuetify/src/styles/tools/_utilities.sass
Expand Up @@ -47,4 +47,8 @@
@if type-of($value) == 'list' and length($properties) == length($value)
$val: nth($value, $i)
@if $val != false
#{$property}: $val !important
// Check if unimportant property exists.
// This allows you to conditional skip
// defining a property as important.
$unimportant: map-get($utility, unimportant)
#{$property}: $val if(index($unimportant, $property), null, !important)

0 comments on commit c11ae35

Please sign in to comment.