|
5 | 5 | * @prop --background: Background of the chip |
6 | 6 | * @prop --color: Color of the chip |
7 | 7 | */ |
8 | | - --background: rgba(0, 0, 0, .12); |
9 | | - --color: rgba(0, 0, 0, .87); |
| 8 | + --background: #{rgba($text-color-rgb, .12)}; |
| 9 | + --color: #{rgba($text-color-rgb, .87)}; |
10 | 10 |
|
11 | 11 | @include border-radius(16px); |
12 | 12 | @include font-smoothing(); |
|
128 | 128 | } |
129 | 129 |
|
130 | 130 | :host(:focus) { |
131 | | - --background: rgba(0, 0, 0, .16); |
| 131 | + --background: #{rgba($text-color-rgb, .16)}; |
132 | 132 | } |
133 | 133 |
|
134 | 134 |
|
135 | 135 | // Chip: Activated |
136 | 136 | // --------------------------------------------- |
137 | 137 |
|
138 | 138 | :host(.activated) { |
139 | | - --background: rgba(0, 0, 0, .20); |
| 139 | + --background: #{rgba($text-color-rgb, .20)}; |
140 | 140 | } |
141 | 141 |
|
142 | 142 |
|
|
145 | 145 |
|
146 | 146 | @media (any-hover: hover) { |
147 | 147 | :host(:hover) { |
148 | | - --background: rgba(0, 0, 0, .16); |
| 148 | + --background: #{rgba($text-color-rgb, .16)}; |
149 | 149 | } |
150 | 150 |
|
151 | 151 | :host(.ion-color:hover) { |
152 | 152 | background: current-color(base, .12); |
153 | 153 | } |
154 | 154 |
|
155 | 155 | :host(.chip-outline:not(.ion-color):hover) { |
156 | | - background: rgba(0, 0, 0, .04); |
| 156 | + background: rgba($text-color-rgb, .04); |
157 | 157 | } |
158 | 158 | } |
0 commit comments