diff --git a/src/components/UserLabel/UserLabel.scss b/src/components/UserLabel/UserLabel.scss index cfcd90a60d..1376b45e5e 100644 --- a/src/components/UserLabel/UserLabel.scss +++ b/src/components/UserLabel/UserLabel.scss @@ -1,5 +1,6 @@ @use '../../../styles/mixins'; @use '../variables'; +@use './variables' as userLabel-variables; $block: '.#{variables.$ns}user-label'; @@ -116,7 +117,7 @@ $block: '.#{variables.$ns}user-label'; } &_size { - @each $size-name, $size-value in variables.$sizes { + @each $size-name, $size-value in userLabel-variables.$sizes { &_#{$size-name} { height: #{$size-value}; } diff --git a/src/components/UserLabel/_variables.scss b/src/components/UserLabel/_variables.scss index d267e034bc..21379dcbdd 100644 --- a/src/components/UserLabel/_variables.scss +++ b/src/components/UserLabel/_variables.scss @@ -8,4 +8,4 @@ $sizes: ( 'xl': 50px, ); -$default-size: map.get($sizes, 's'); +$default-size: map.get($sizes, 'm'); diff --git a/src/components/variables.scss b/src/components/variables.scss index ef87a29f9f..e7fd20e983 100644 --- a/src/components/variables.scss +++ b/src/components/variables.scss @@ -1,13 +1,5 @@ $ns: 'g-'; -$sizes: ( - 'xs': 24px, - 's': 28px, - 'm': 32px, - 'l': 42px, - 'xl': 50px, -); - $xs-height: 20px; $s-height: 24px; $m-height: 28px;