Skip to content

Commit a69ae90

Browse files
fix(accordion): set opacity for activated state
1 parent 57cd53c commit a69ae90

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@
5757
--padding-bottom: #{globals.$ion-space-300};
5858
--padding-start: #{globals.$ion-space-400};
5959

60+
/**
61+
* Headers use neutral press instead of default item select (blue) when `.ion-activated`.
62+
* Variables are read by `ion-item`’s activated styles in `item.ionic.scss` / `item.common.scss`.
63+
*/
64+
--background-activated: #{globals.$ion-bg-neutral-subtlest-press};
65+
--background-activated-opacity: 1;
66+
6067
@include globals.typography(globals.$ion-heading-h6-medium);
6168
}
6269

core/src/components/item/item.ionic.scss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,7 @@ slot[name="end"]::slotted(*) {
125125

126126
// Item in Accordion
127127
// --------------------------------------------------
128-
:host(.accordion-header-item) {
129-
--background-activated: #{globals.$ion-bg-neutral-subtlest-press};
130-
}
131-
132128
:host(.accordion-header-item) .item-native {
133129
@include globals.padding-horizontal(globals.$ion-space-400);
134130
}
131+

0 commit comments

Comments
 (0)