|
5 | 5 | // -------------------------------------------------- |
6 | 6 |
|
7 | 7 | :host { |
8 | | - --background: #{globals.$ion-primitives-neutral-1200}; |
9 | 8 | --box-shadow: #{globals.$ion-elevation-4}; |
10 | | - --button-color: #{globals.$ion-primitives-base-white}; |
11 | | - --color: #{globals.$ion-primitives-base-white}; |
12 | 9 | --max-width: 343px; |
13 | 10 | --start: 8px; |
14 | 11 | --end: 8px; |
|
133 | 130 | font-size: globals.$ion-scale-600; |
134 | 131 | } |
135 | 132 |
|
| 133 | +// Bold Toast |
| 134 | +// -------------------------------------------------- |
| 135 | + |
| 136 | +:host(.toast-hue-bold) { |
| 137 | + --background: #{globals.ion-color(secondary, base)}; |
| 138 | + --background-activated: #{globals.ion-color(secondary, shade)}; |
| 139 | + --color: #{globals.ion-color(secondary, contrast)}; |
| 140 | + --button-color: #{globals.ion-color(secondary, contrast)}; |
| 141 | +} |
| 142 | + |
| 143 | +:host(.toast-hue-bold.ion-color) .toast-wrapper { |
| 144 | + background: globals.current-color(base); |
| 145 | + color: globals.current-color(contrast); |
| 146 | +} |
| 147 | + |
| 148 | + |
136 | 149 | // Subtle Toast |
137 | 150 | // -------------------------------------------------- |
138 | 151 |
|
139 | | -:host(.toast-hue-subtle) .toast-wrapper { |
140 | | - --background: #{globals.ion-color(primary, base, $subtle: true)}; |
141 | | - --background-activated: #{globals.ion-color(primary, shade, $subtle: true)}; |
142 | | - --color: #{globals.ion-color(primary, contrast, $subtle: true)}; |
| 152 | +:host(.toast-hue-subtle) { |
| 153 | + --background: #{globals.ion-color(secondary, base, $subtle: true)}; |
| 154 | + --background-activated: #{globals.ion-color(secondary, shade, $subtle: true)}; |
| 155 | + --color: #{globals.ion-color(secondary, contrast, $subtle: true)}; |
| 156 | + --button-color: #{globals.ion-color(secondary, contrast, $subtle: true)}; |
143 | 157 | } |
144 | 158 |
|
145 | 159 | :host(.toast-hue-subtle.ion-color) .toast-wrapper { |
|
0 commit comments