|
43 | 43 | // -------------------------------------------------- |
44 | 44 |
|
45 | 45 | :host(.button-solid) { |
46 | | - --background-activated: var(--ion-color-shade, #{globals.ion-color(primary, shade)}); |
47 | | - --background-hover: var(--ion-color-shade, #{globals.ion-color(primary, shade)}); |
| 46 | + --background-activated: #{globals.$ion-bg-primary-base-press}; |
| 47 | + --background-hover: #{globals.$ion-bg-primary-base-press}; |
48 | 48 | --background-focused: transparent; |
49 | 49 | --background-hover-opacity: 1; |
50 | | - --background: var(--ion-color-base, #{globals.ion-color(primary, base)}); |
51 | | - --color: var(--ion-color-contrast, #{globals.ion-color(primary, contrast)}); |
| 50 | + --background: #{globals.ion-color(primary, base)}; |
| 51 | + --color: #{globals.ion-color(primary, contrast)}; |
52 | 52 | --ripple-opacity: var(--background-activated-opacity, 1); |
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 | + |
56 | 63 | // Outline Button |
57 | 64 | // -------------------------------------------------- |
58 | 65 |
|
59 | 66 | :host(.button-outline) { |
60 | 67 | --border-width: #{globals.$ion-border-size-025}; |
61 | 68 | --border-style: #{globals.$ion-border-style-solid}; |
62 | | - --background-activated: var(--ion-color-subtle-shade, #{globals.ion-color(primary, shade, $subtle: true)}); |
| 69 | + --background-activated: #{globals.$ion-bg-primary-subtle-press}; |
63 | 70 | --background-focused: transparent; |
64 | | - --background-hover: var(--ion-color-subtle-shade, #{globals.ion-color(primary, shade, $subtle: true)}); |
| 71 | + --background-hover: #{globals.$ion-bg-primary-subtle-press}; |
65 | 72 | --background-hover-opacity: 1; |
66 | | - --border-color: var(--ion-color-base, #{globals.ion-color(primary, base)}); |
67 | | - --color: var(--ion-color-base, #{globals.ion-color(primary, base)}); |
| 73 | + --border-color: #{globals.ion-color(primary, base)}; |
| 74 | + --color: #{globals.ion-color(primary, base)}; |
68 | 75 | --ripple-opacity: var(--background-activated-opacity, 1); |
69 | 76 | --ripple-color: var(--background-activated); |
70 | 77 | } |
71 | 78 |
|
| 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 | + |
72 | 86 | // Warning Outline Button - use foreground color for text and border |
73 | 87 | :host(.button-outline.ion-color-warning) .button-native { |
74 | | - --ion-color-base: var(--ion-color-warning-foreground); |
| 88 | + --ion-color-base: #{globals.ion-color(warning, foreground)}; |
75 | 89 | } |
76 | 90 |
|
77 | 91 | // Clear Button |
78 | 92 | // -------------------------------------------------- |
79 | 93 |
|
80 | 94 | :host(.button-clear) { |
81 | | - --background-activated: var(--ion-color-subtle-shade, #{globals.ion-color(primary, shade, $subtle: true)}); |
| 95 | + --background-activated: #{globals.$ion-bg-primary-subtle-press}; |
82 | 96 | --background-focused: transparent; |
83 | | - --background-hover: var(--ion-color-subtle-shade, #{globals.ion-color(primary, shade, $subtle: true)}); |
| 97 | + --background-hover: #{globals.$ion-bg-primary-subtle-press}; |
84 | 98 | --background-hover-opacity: 1; |
85 | 99 | --color: #{globals.ion-color(primary, foreground)}; |
86 | 100 | --ripple-opacity: var(--background-activated-opacity, 1); |
87 | 101 | --ripple-color: var(--background-activated); |
88 | 102 | } |
89 | 103 |
|
90 | 104 | :host(.button-clear.ion-color) { |
| 105 | + --background-activated: #{globals.current-color(shade, $subtle: true)}; |
| 106 | + --background-hover: #{globals.current-color(shade, $subtle: true)}; |
| 107 | + |
91 | 108 | .button-native { |
92 | | - --ion-color-base: var(--ion-color-foreground, #{globals.current-color(foreground)}); |
| 109 | + --ion-color-base: #{globals.current-color(foreground)}; |
93 | 110 | } |
94 | 111 | } |
95 | 112 |
|
|
0 commit comments