Skip to content

Commit

Permalink
fix(styles): list dropdown min-width (#3725)
Browse files Browse the repository at this point in the history
  • Loading branch information
platon-rov authored Jul 12, 2022
1 parent e4b560f commit 4416961
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/styles/mixins/list/_list-dropdown.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@import "./list-definitions";

$fd-list-dropdown-max-width: 40rem !default;
$fd-list-dropdown-vertical-padding: 0.75rem !default;
$fd-list-dropdown-vertical-compact-padding: 0.5rem !default;
$fd-checkbox-dimensions: 1.375rem !default;
Expand Down Expand Up @@ -107,7 +106,7 @@ $fd-checkbox-dimensions: 1.375rem !default;

&--dropdown,
&--multi-input {
@mixin list-width-limit($maxWidth: $fd-list-dropdown-max-width) {
@mixin list-width-limit($maxWidth) {
max-width: $maxWidth;

.#{$block}__title {
Expand All @@ -129,7 +128,7 @@ $fd-checkbox-dimensions: 1.375rem !default;
}

display: block;
min-width: 7rem;
min-width: 5rem;

.#{$block}__item {
cursor: pointer;
Expand All @@ -145,22 +144,18 @@ $fd-checkbox-dimensions: 1.375rem !default;
font-size: $fd-list-normal-font-size;
white-space: normal;
flex: auto;
width: auto;

&--no-wrap {
white-space: nowrap;
}
}

.#{$block}__secondary {
width: auto;
display: block;
}

.#{$block}__title {
width: auto;
}

@include list-width-limit($fd-list-dropdown-max-width);
@include list-width-limit(40rem);

.#{$block}__icon {
line-height: 1rem;
Expand Down

0 comments on commit 4416961

Please sign in to comment.