|
53 | 53 | --ripple-color: var(--background-activated); |
54 | 54 | } |
55 | 55 |
|
56 | | -:host(.button-solid.ion-color) { |
57 | | - --background-activated: #{globals.current-color(shade)}; |
58 | | - --background-hover: #{globals.current-color(shade)}; |
59 | | - --background: #{globals.current-color(base)}; |
60 | | - --color: #{globals.current-color(contrast)}; |
61 | | -} |
62 | | - |
63 | 56 | // Outline Button |
64 | 57 | // -------------------------------------------------- |
65 | 58 |
|
|
76 | 69 | --ripple-color: var(--background-activated); |
77 | 70 | } |
78 | 71 |
|
79 | | -:host(.button-outline.ion-color) { |
80 | | - --background-activated: #{globals.current-color(shade, $subtle: true)}; |
81 | | - --background-hover: #{globals.current-color(shade, $subtle: true)}; |
82 | | - --border-color: #{globals.current-color(base)}; |
83 | | - --color: #{globals.current-color(base)}; |
84 | | -} |
85 | | - |
86 | 72 | // Warning Outline Button - use foreground color for text and border |
87 | 73 | :host(.button-outline.ion-color-warning) .button-native { |
88 | 74 | border-color: #{globals.current-color(foreground)}; |
|
103 | 89 | --ripple-color: var(--background-activated); |
104 | 90 | } |
105 | 91 |
|
106 | | -:host(.button-clear.ion-color) { |
107 | | - --background-activated: #{globals.current-color(shade, $subtle: true)}; |
108 | | - --background-hover: #{globals.current-color(shade, $subtle: true)}; |
| 92 | +// Ripple Effect |
| 93 | +// ------------------------------------------------------------------------------- |
| 94 | + |
| 95 | +:host(.button-solid.ion-color) ion-ripple-effect { |
| 96 | + color: globals.current-color(shade); |
| 97 | +} |
| 98 | + |
| 99 | +:host(.button-outline.ion-color) ion-ripple-effect, |
| 100 | +:host(.button-clear.ion-color) ion-ripple-effect { |
| 101 | + color: globals.current-color(shade, $subtle: true); |
109 | 102 | } |
110 | 103 |
|
111 | 104 | // Button Sizes |
|
225 | 218 | background: globals.current-color(shade); |
226 | 219 | } |
227 | 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 | + |
228 | 226 | :host(.ion-activated) .button-native:has(ion-ripple-effect)::after, |
229 | | -: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 { |
230 | 230 | background: transparent; |
231 | 231 | } |
232 | 232 |
|
|
237 | 237 | :host(.button-solid.ion-color:hover) .button-native::after { |
238 | 238 | background: globals.current-color(shade); |
239 | 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 | + } |
240 | 245 | } |
241 | 246 |
|
242 | 247 | // Button: Disabled |
|
0 commit comments