Skip to content

Commit

Permalink
fix(clayui/css): Fix wrong padding in Clay Picker dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
ilzamcmed committed Jan 18, 2024
1 parent 51a922b commit 14e9db8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/clay-css/src/scss/atlas/variables/_dropdowns.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ $dropdown-menu: map-deep-merge(

// .dropdown-item

$dropdown-item-padding-x: 1rem !default;
$dropdown-item-padding-x: 0.5rem !default;
$dropdown-item-padding-y: 0.34375rem !default;

/// @deprecated as of v3.x use map $dropdown-item instead
Expand Down
5 changes: 0 additions & 5 deletions packages/clay-css/src/scss/cadmin/components/_dropdowns.scss
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,6 @@
}

.dropdown-item {
padding-right: calc(
#{$cadmin-dropdown-item-padding-x} + #{$cadmin-dropdown-item-indicator-size} +
#{$cadmin-dropdown-item-indicator-spacer-x}
);

@if ($cadmin-enable-c-inner) {
.c-inner {
margin-right: calc(
Expand Down
4 changes: 2 additions & 2 deletions packages/clay-css/src/scss/cadmin/variables/_dropdowns.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ $cadmin-dropdown-menu: map-deep-merge(

// .dropdown-item

$cadmin-dropdown-item-padding-x: 16px !default;
$cadmin-dropdown-item-padding-x: 8px !default;
$cadmin-dropdown-item-padding-y: 8px !default;

$cadmin-dropdown-item-disabled-cursor: $cadmin-disabled-cursor !default;
Expand Down Expand Up @@ -396,7 +396,7 @@ $cadmin-dropdown-item-indicator-start: map-deep-merge(
display: inline-flex,
height: $cadmin-dropdown-item-indicator-size,
justify-content: center,
left: $cadmin-dropdown-item-padding-x,
left: 0.5rem,
position: absolute,
right: auto,
top:
Expand Down
4 changes: 0 additions & 4 deletions packages/clay-css/src/scss/components/_dropdowns.scss
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,6 @@
}

.dropdown-item {
padding-right: calc(
#{$dropdown-item-padding-x} + #{$dropdown-item-indicator-size} + #{$dropdown-item-indicator-spacer-x}
);

@if ($enable-c-inner) {
.c-inner {
margin-right: calc(
Expand Down

0 comments on commit 14e9db8

Please sign in to comment.