File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed
Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -201,6 +201,12 @@ export class Accordion implements ComponentInterface {
201201 ionItem . lines = 'full' ;
202202 }
203203
204+ /**
205+ * Add a class to identify this item as an accordion header
206+ * for specific styling purposes
207+ */
208+ ionItem . classList . add ( 'accordion-header-item' ) ;
209+
204210 /**
205211 * Set the pressed state background color for ionic theme.
206212 * This overrides the default blue color from ion-item.
Original file line number Diff line number Diff line change 1111 < style >
1212 .grid {
1313 display : grid;
14- grid-template-columns : repeat (auto-fill, minmax (250 px , 1fr ));
14+ grid-template-columns : repeat (auto-fill, minmax (350 px , 1fr ));
1515 grid-row-gap : 20px ;
1616 grid-column-gap : 20px ;
1717 }
Original file line number Diff line number Diff line change @@ -122,3 +122,10 @@ slot[name="end"]::slotted(*) {
122122:host (.in-select-modal.ion-focused ) .item-native {
123123 --border-radius : #{globals .$ion-border-radius-400 } ;
124124}
125+
126+ // Item in Accordion
127+ // --------------------------------------------------
128+ // Ensure button element in accordion header has proper horizontal padding
129+ :host (.accordion-header-item ) .item-native {
130+ @include globals .padding-horizontal (globals .$ion-space-400 );
131+ }
You can’t perform that action at this time.
0 commit comments