Skip to content

Commit

Permalink
fix(accordion): replaced height by paddings (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfranzke authored Oct 11, 2022
1 parent 27b6eb4 commit fa49860
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions source/_patterns/02-components/accordion/accordion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
summary {
@include icon(glyph(chevron-right), 24, "outline", $partial: $partial);

height: to-rem($pxValue: 48);
padding-block: $db-spacing-sm;
display: flex;
align-items: center;
// Negating the padding left for moving the element into that direction with the same measures
Expand Down Expand Up @@ -74,7 +74,8 @@
)};

summary {
height: to-rem($pxValue: 40);
// ToDo: This needs to get replaced by the correct variable
padding-block: 0.59375rem;
font-size: to-rem($pxValue: 14);

&::before {
Expand All @@ -91,7 +92,7 @@
)};

summary {
height: to-rem($pxValue: 64);
padding-block: $db-spacing-m;
font-size: to-rem($pxValue: 20);

&::before {
Expand Down

0 comments on commit fa49860

Please sign in to comment.