Skip to content

Commit ff93af7

Browse files
fix(accordion): move styles to inner element to use proper animation (#30032)
Moves the padding to the inner content element so the `offsetHeight` will be calculated properly and the animation will be smooth.
1 parent 5bf48cb commit ff93af7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/components/accordion/accordion.ionic.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
// Accordion Content
5959
// --------------------------------------------------
6060

61-
#content {
61+
#content-wrapper {
6262
@include globals.padding(null, globals.$ion-space-400, globals.$ion-space-300, globals.$ion-space-400);
6363
@include globals.typography(globals.$ion-body-md-regular);
6464

core/src/components/accordion/test/shape/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<style>
1212
.grid {
1313
display: grid;
14-
grid-template-columns: repeat(4, 1fr);
14+
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
1515
grid-row-gap: 20px;
1616
grid-column-gap: 20px;
1717
}

0 commit comments

Comments
 (0)