Skip to content

Commit

Permalink
fix: set input font-size
Browse files Browse the repository at this point in the history
  • Loading branch information
ogonkov committed Jan 9, 2024
1 parent 02aff05 commit 38d8fa5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/components/controls/TextArea/TextArea.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ $block: '.#{variables.$ns-new}text-area';
&_size {
&_s {
#{$block}__control {
@include control-mixins.input-control(s);
@include control-mixins.input-control(s, $block);
}

&#{$block}_has-clear #{$block}__control {
Expand All @@ -81,7 +81,7 @@ $block: '.#{variables.$ns-new}text-area';

&_m {
#{$block}__control {
@include control-mixins.input-control(m);
@include control-mixins.input-control(m, $block);
}

&#{$block}_has-clear #{$block}__control {
Expand All @@ -93,7 +93,7 @@ $block: '.#{variables.$ns-new}text-area';

&_l {
#{$block}__control {
@include control-mixins.input-control(l);
@include control-mixins.input-control(l, $block);
}

&#{$block}_has-clear #{$block}__control {
Expand All @@ -105,7 +105,7 @@ $block: '.#{variables.$ns-new}text-area';

&_xl {
#{$block}__control {
@include control-mixins.input-control(xl);
@include control-mixins.input-control(xl, $block);
}

&#{$block}_has-clear #{$block}__control {
Expand Down
8 changes: 4 additions & 4 deletions src/components/controls/TextInput/TextInput.scss
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ $block: '.#{variables.$ns}text-input';
&_size {
&_s {
#{$block}__control {
@include control-mixins.input-control(s);
@include control-mixins.input-control(s, $block);
}

#{$block}__label {
Expand Down Expand Up @@ -139,7 +139,7 @@ $block: '.#{variables.$ns}text-input';

&_m {
#{$block}__control {
@include control-mixins.input-control(m);
@include control-mixins.input-control(m, $block);
}

#{$block}__label {
Expand Down Expand Up @@ -169,7 +169,7 @@ $block: '.#{variables.$ns}text-input';

&_l {
#{$block}__control {
@include control-mixins.input-control(l);
@include control-mixins.input-control(l, $block);
}

#{$block}__label {
Expand Down Expand Up @@ -199,7 +199,7 @@ $block: '.#{variables.$ns}text-input';

&_xl {
#{$block}__control {
@include control-mixins.input-control(xl);
@include control-mixins.input-control(xl, $block);
}

#{$block}__label {
Expand Down
6 changes: 5 additions & 1 deletion src/components/controls/mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@use '../variables.scss';
@use './variables.scss' as control-variables;

@mixin input-control($size) {
@mixin input-control($size, $block) {
@if $size == 's' {
@include mixins.text-body-short;

Expand All @@ -27,4 +27,8 @@
height: #{variables.$xl-height - control-variables.$border-width * 2};
padding: 11px 12px;
}

@at-root #{$block}_mobile#{&} {
font-size: control-variables.$mobile-safari-font-size;
}
}

0 comments on commit 38d8fa5

Please sign in to comment.