Skip to content

Commit fa49860

Browse files
authored
fix(accordion): replaced height by paddings (#80)
1 parent 27b6eb4 commit fa49860

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

source/_patterns/02-components/accordion/accordion.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
summary {
1111
@include icon(glyph(chevron-right), 24, "outline", $partial: $partial);
1212

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

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

8081
&::before {
@@ -91,7 +92,7 @@
9192
)};
9293

9394
summary {
94-
height: to-rem($pxValue: 64);
95+
padding-block: $db-spacing-m;
9596
font-size: to-rem($pxValue: 20);
9697

9798
&::before {

0 commit comments

Comments
 (0)