Skip to content

Commit 3cd999d

Browse files
fix(accordion): remove check for theme flag
1 parent 9ab6791 commit 3cd999d

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

core/src/components/accordion/accordion.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -206,15 +206,9 @@ export class Accordion implements ComponentInterface {
206206
ionItem.lines = 'full';
207207
}
208208

209-
/**
210-
* Ionic theme: mark header items so `item.ionic.scss` can set pressed tokens.
211-
* We cannot use `:host-context(ion-accordion)` for this — that selector is dropped
212-
* in WebKit/Firefox (see `mixins.scss` notes on `:host-context`), which breaks
213-
* screenshot tests and real Safari.
214-
*/
215-
if (getIonTheme(this) === 'ionic') {
216-
ionItem.classList.add('accordion-header-item');
217-
}
209+
210+
ionItem.classList.add('accordion-header-item');
211+
218212
};
219213

220214
private getSlottedHeaderIonItem = () => {

0 commit comments

Comments
 (0)