|
44 | 44 |
|
45 | 45 | :host(.button-solid) { |
46 | 46 | --background-activated: #{globals.ion-color(primary, shade)}; |
47 | | - --background-hover: #{globals.ion-color(primary, contrast)}; |
48 | | - --background-focused: #{globals.ion-color(primary, contrast)}; |
49 | | - --background-focused-opacity: 0.24; |
50 | | - --background-hover-opacity: 0.08; |
| 47 | + --background-hover: #{globals.ion-color(primary, shade)}; |
| 48 | + --background-focused: transparent; |
| 49 | + --background-hover-opacity: 1; |
51 | 50 | --ripple-opacity: var(--background-activated-opacity, 1); |
52 | 51 | --ripple-color: var(--background-activated); |
53 | 52 | } |
|
58 | 57 | :host(.button-outline) { |
59 | 58 | --border-width: #{globals.$ion-border-size-025}; |
60 | 59 | --border-style: #{globals.$ion-border-style-solid}; |
61 | | - --background-activated: #{globals.$ion-primitives-neutral-200}; |
| 60 | + --background-activated: #{globals.$ion-bg-neutral-subtlest-press}; |
62 | 61 | --background-focused: transparent; |
63 | | - --background-hover: #{globals.ion-color(primary, base)}; |
64 | | - --background-hover-opacity: 0.04; |
| 62 | + --background-hover: #{globals.$ion-bg-neutral-subtlest-press}; |
| 63 | + --background-hover-opacity: 1; |
65 | 64 | --ripple-opacity: var(--background-activated-opacity, 1); |
66 | 65 | --ripple-color: var(--background-activated); |
67 | 66 | } |
|
70 | 69 | // -------------------------------------------------- |
71 | 70 |
|
72 | 71 | :host(.button-clear) { |
73 | | - --background-activated: #{globals.$ion-primitives-neutral-200}; |
| 72 | + --background-activated: #{globals.$ion-bg-neutral-subtlest-press}; |
74 | 73 | --background-focused: transparent; |
75 | | - --background-hover: #{globals.ion-color(primary, base)}; |
76 | | - --background-hover-opacity: 0.04; |
| 74 | + --background-hover: #{globals.$ion-bg-neutral-subtlest-press}; |
| 75 | + --background-hover-opacity: 1; |
77 | 76 | --ripple-opacity: var(--background-activated-opacity, 1); |
78 | 77 | --ripple-color: var(--background-activated); |
79 | 78 | } |
|
217 | 216 | outline-offset: globals.$ion-border-size-050; |
218 | 217 | } |
219 | 218 |
|
220 | | -/** |
221 | | - * Only allow overriding of opacity here |
222 | | - * as developers should not be overriding |
223 | | - * colors when using the color prop. |
224 | | - */ |
225 | | - |
226 | | -:host(.button-solid.ion-color.ion-focused) .button-native::after { |
227 | | - background: globals.current-color(contrast); |
228 | | -} |
229 | | - |
230 | 219 | // Button: Activated |
231 | 220 | // -------------------------------------------------- |
232 | 221 |
|
|
239 | 228 | background: transparent; |
240 | 229 | } |
241 | 230 |
|
| 231 | +// Button: Hover |
| 232 | +// -------------------------------------------------- |
| 233 | + |
| 234 | +@media (any-hover: hover) { |
| 235 | + :host(.button-solid.ion-color:hover) .button-native::after { |
| 236 | + background: globals.current-color(shade); |
| 237 | + } |
| 238 | +} |
| 239 | + |
242 | 240 | // Button: Disabled |
243 | 241 | // -------------------------------------------------- |
244 | 242 |
|
|
0 commit comments