Skip to content

Commit b80a94a

Browse files
feat(toggle): add new styles for press state
1 parent 34fd510 commit b80a94a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

core/src/themes/ionic/ionic.mixins.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@
1212
// }
1313
//
1414
// --------------------------------------------------
15-
@mixin pressed-state() {
15+
@mixin pressed-state($color: null) {
16+
$color: if($color != null, $color, tokens.$ion-state-press);
17+
1618
@include mixins.position(0, 0, 0, 0);
1719

1820
position: absolute;
1921

20-
background-color: tokens.$ion-state-press;
22+
background-color: $color;
2123

2224
content: "";
2325
}

0 commit comments

Comments
 (0)