|
59 | 59 | :host(.button-outline) { |
60 | 60 | --border-width: #{globals.$ion-border-size-025}; |
61 | 61 | --border-style: #{globals.$ion-border-style-solid}; |
62 | | - --background-activated: #{globals.$ion-bg-neutral-subtlest-press}; |
| 62 | + --background-activated: #{globals.ion-color(primary, shade, $subtle: true)}; |
63 | 63 | --background-focused: transparent; |
64 | | - --background-hover: #{globals.$ion-bg-neutral-subtlest-press}; |
| 64 | + --background-hover: #{globals.ion-color(primary, shade, $subtle: true)}; |
65 | 65 | --background-hover-opacity: 1; |
66 | 66 | --border-color: #{globals.ion-color(primary, base)}; |
67 | 67 | --color: #{globals.ion-color(primary, base)}; |
68 | 68 | --ripple-opacity: var(--background-activated-opacity, 1); |
69 | 69 | --ripple-color: var(--background-activated); |
70 | 70 | } |
71 | 71 |
|
| 72 | +// Warning Outline Button - use foreground color for text and border |
| 73 | +:host(.button-outline.ion-color-warning) .button-native { |
| 74 | + border-color: globals.ion-color(warning, foreground); |
| 75 | + |
| 76 | + color: globals.ion-color(warning, foreground); |
| 77 | +} |
| 78 | + |
72 | 79 | // Clear Button |
73 | 80 | // -------------------------------------------------- |
74 | 81 |
|
75 | 82 | :host(.button-clear) { |
76 | | - --background-activated: #{globals.$ion-bg-neutral-subtlest-press}; |
| 83 | + --background-activated: #{globals.ion-color(primary, shade, $subtle: true)}; |
77 | 84 | --background-focused: transparent; |
78 | | - --background-hover: #{globals.$ion-bg-neutral-subtlest-press}; |
| 85 | + --background-hover: #{globals.ion-color(primary, shade, $subtle: true)}; |
79 | 86 | --background-hover-opacity: 1; |
80 | 87 | --color: #{globals.ion-color(primary, foreground)}; |
81 | 88 | --ripple-opacity: var(--background-activated-opacity, 1); |
|
91 | 98 |
|
92 | 99 | :host(.button-outline.ion-color) ion-ripple-effect, |
93 | 100 | :host(.button-clear.ion-color) ion-ripple-effect { |
94 | | - color: globals.$ion-primitives-neutral-200; |
| 101 | + color: globals.current-color(shade, $subtle: true); |
95 | 102 | } |
96 | 103 |
|
97 | 104 | // Button Sizes |
|
211 | 218 | background: globals.current-color(shade); |
212 | 219 | } |
213 | 220 |
|
| 221 | +:host(.button-outline.ion-color.ion-activated) .button-native::after, |
| 222 | +:host(.button-clear.ion-color.ion-activated) .button-native::after { |
| 223 | + background: globals.current-color(shade, $subtle: true); |
| 224 | +} |
| 225 | + |
214 | 226 | :host(.ion-activated) .button-native:has(ion-ripple-effect)::after, |
215 | | -:host(.button-solid.ion-color.ion-activated) .button-native:has(ion-ripple-effect)::after { |
| 227 | +:host(.button-solid.ion-color.ion-activated) .button-native:has(ion-ripple-effect)::after, |
| 228 | +:host(.button-outline.ion-color.ion-activated) .button-native:has(ion-ripple-effect)::after, |
| 229 | +:host(.button-clear.ion-color.ion-activated) .button-native:has(ion-ripple-effect)::after { |
216 | 230 | background: transparent; |
217 | 231 | } |
218 | 232 |
|
|
223 | 237 | :host(.button-solid.ion-color:hover) .button-native::after { |
224 | 238 | background: globals.current-color(shade); |
225 | 239 | } |
| 240 | + |
| 241 | + :host(.button-outline.ion-color:hover) .button-native::after, |
| 242 | + :host(.button-clear.ion-color:hover) .button-native::after { |
| 243 | + background: globals.current-color(shade, $subtle: true); |
| 244 | + } |
226 | 245 | } |
227 | 246 |
|
228 | 247 | // Button: Disabled |
|
0 commit comments