Skip to content

Commit 01a2583

Browse files
committed
fix(toast): use correct button colors
1 parent ad2cdd1 commit 01a2583

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

core/src/components/toast/test/hue/index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,16 @@
6262
const hue = toast.hue;
6363

6464
const color = toast.color || 'default';
65-
toast.message = `This is a ${hue} ${color} toast.`;
65+
toast.message = `This is a ${color} toast.`;
66+
67+
toast.icon = 'information-circle';
6668

6769
toast.buttons = [
6870
{
6971
text: 'Action',
72+
},
73+
{
74+
icon: 'close',
7075
role: 'cancel',
7176
},
7277
];

core/src/components/toast/toast.ionic.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@
145145
color: globals.current-color(contrast);
146146
}
147147

148+
:host(.toast-hue-bold.ion-color) .toast-button {
149+
color: globals.current-color(contrast);
150+
}
151+
148152
// Subtle Toast
149153
// --------------------------------------------------
150154

@@ -155,6 +159,10 @@
155159
--button-color: #{globals.$ion-text-link-default};
156160
}
157161

162+
:host(.toast-hue-subtle) .toast-button-cancel {
163+
color: #{globals.$ion-icon-subtlest};
164+
}
165+
158166
:host(.toast-hue-subtle.ion-color) .toast-wrapper {
159167
background: globals.current-color(base, $subtle: true);
160168
color: globals.current-color(contrast, $subtle: true);

0 commit comments

Comments
 (0)