File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
core/src/components/toast Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 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 ] ;
Original file line number Diff line number Diff line change 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
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 );
You can’t perform that action at this time.
0 commit comments