Skip to content

Commit

Permalink
fix(@clay/css): LPD-46380 Labels in dropdown-item are slightly misali…
Browse files Browse the repository at this point in the history
…gned
  • Loading branch information
pat270 committed Jan 21, 2025
1 parent 6456669 commit 2944d8f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/clay-css/src/scss/cadmin/variables/_dropdowns.scss
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ $cadmin-dropdown-item-base: map-deep-merge(
line-height: $cadmin-dropdown-font-size * $cadmin-line-height-base,
),
'&.autofit-row': (
align-items: center,
padding-left: calc(#{$cadmin-dropdown-item-padding-x} - 4px),
padding-right: calc(#{$cadmin-dropdown-item-padding-x} - 4px),
autofit-col: (
Expand All @@ -171,6 +172,7 @@ $cadmin-dropdown-item-base: map-deep-merge(
),
),
autofit-row: (
align-items: center,
margin-left: -4px,
margin-right: -4px,
width: auto,
Expand Down
4 changes: 4 additions & 0 deletions packages/clay-css/src/scss/mixins/_dropdown-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,10 @@
.custom-control-label {
font-weight: map-get($map, font-weight);
}

.label {
@include clay-label-variant(map-get($map, label));
}
}
}
}
6 changes: 6 additions & 0 deletions packages/clay-css/src/scss/variables/_dropdowns.scss
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ $dropdown-item-base: map-deep-merge(
line-height: calc(#{$dropdown-font-size} * #{$line-height-base}),
),
'&.autofit-row': (
align-items: center,
padding-left: calc(#{$dropdown-item-padding-x} - 0.25rem),
padding-right: calc(#{$dropdown-item-padding-x} - 0.25rem),
autofit-col: (
Expand All @@ -225,6 +226,7 @@ $dropdown-item-base: map-deep-merge(
),
),
autofit-row: (
align-items: center,
margin-left: -0.25rem,
margin-right: -0.25rem,
width: auto,
Expand Down Expand Up @@ -967,6 +969,10 @@ $dropdown-menu-palette: map-deep-merge(
padding-left: 1.5rem,
padding-right: 0.5rem,
),
label: (
margin-bottom: 0,
margin-right: 0,
),
),
dropdown-item-scroll: (
font-size: 1rem,
Expand Down

0 comments on commit 2944d8f

Please sign in to comment.