Skip to content

Commit 57cd53c

Browse files
fix(accordion): add check for ionic theme
1 parent ab76f43 commit 57cd53c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

core/src/components/accordion/accordion.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,11 @@ export class Accordion implements ComponentInterface {
202202
}
203203

204204
/**
205-
* Add a class to identify this item as an accordion header
206-
* for specific styling purposes
205+
* Ionic theme only: class for accordion header item styling.
207206
*/
208-
ionItem.classList.add('accordion-header-item');
207+
if (getIonTheme(this) === 'ionic') {
208+
ionItem.classList.add('accordion-header-item');
209+
}
209210
};
210211

211212
private getSlottedHeaderIonItem = () => {

0 commit comments

Comments
 (0)