Skip to content

Commit 0e53ec3

Browse files
committed
fix(button): fix ios buttons in colored toolbar so they don't use the default color
fixes #8566
1 parent b00860b commit 0e53ec3

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/components/toolbar/test/colors/main.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060

6161
<ion-toolbar no-border-top color="secondary">
6262
<ion-buttons start>
63-
<button ion-button icon-only solid>
63+
<button ion-button icon-only color="primary">
6464
<ion-icon name="contact"></ion-icon>
6565
</button>
6666
<button ion-button icon-left solid>
@@ -79,7 +79,7 @@
7979

8080
<ion-toolbar no-border-top color="secondary">
8181
<ion-buttons start>
82-
<button ion-button icon-only solid class="activated">
82+
<button ion-button icon-only color="primary" class="activated">
8383
<ion-icon name="contact"></ion-icon>
8484
</button>
8585
<button ion-button icon-left solid class="activated">

src/components/toolbar/toolbar.ios.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,12 @@ ion-footer .toolbar-ios:last-child .toolbar-background,
113113
.bar-button-default-ios {
114114
color: $color-contrast;
115115
}
116+
117+
@each $color-name, $color-base, $color-contrast in get-colors($colors-ios) {
118+
@include ios-bar-button-default($color-name, $color-base, $color-contrast);
119+
@include ios-bar-button-outline($color-name, $color-base, $color-contrast);
120+
@include ios-bar-button-solid($color-name, $color-base, $color-contrast);
121+
}
116122
}
117123
}
118124

0 commit comments

Comments
 (0)