Skip to content

Commit

Permalink
fix: duplicated rem units (#929)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfranzke authored Aug 15, 2024
1 parent 29a5352 commit 13624ae
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions source/_patterns/02-components/accordion/accordion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@import "accordion.variables";

.cmp-accordion {
--db-accordion---paddingLeft: #{to-rem($pxValue: $accordion---paddingLeft)};
--db-accordion---paddingLeft: #{$accordion---paddingLeft};
border-bottom: 1px solid $db-color-cool-gray-200;
padding-left: var(--db-accordion---paddingLeft);
padding-right: $accordion---paddingRight;
Expand Down Expand Up @@ -58,9 +58,7 @@
// Emphasis
&%emphasis-High {
// Calculate especially depending on the icons sizes difference
--db-accordion---paddingLeft: #{to-rem(
$pxValue: $accordion---paddingLeft + 8
)};
--db-accordion---paddingLeft: #{$accordion---paddingLeft + 0.5rem};

summary {
font-weight: 700;
Expand All @@ -79,9 +77,7 @@
// Sizes
&%size-Small {
// Calculate dependending on the icons sizes and margins difference
--db-accordion---paddingLeft: #{to-rem(
$pxValue: $accordion---paddingLeft - 12
)};
--db-accordion---paddingLeft: #{$accordion---paddingLeft - 0.75rem};

summary {
font-size: to-rem($pxValue: 14);
Expand All @@ -98,9 +94,7 @@

&%size-Large {
// Calculate especially depending on the icons sizes difference
--db-accordion---paddingLeft: #{to-rem(
$pxValue: $accordion---paddingLeft + 8
)};
--db-accordion---paddingLeft: #{$accordion---paddingLeft + 0.5rem};

summary {
font-size: to-rem($pxValue: 20);
Expand Down

0 comments on commit 13624ae

Please sign in to comment.