|
3 | 3 | *
|
4 | 4 | * These properties can be overridden using the component's tag as selector.
|
5 | 5 | *
|
6 |
| - * @prop --calcite-accordion-border-color: [Deprecated] Use `--calcite-accordion-item-border-color`. Specifies the component's border color. |
7 |
| - * @prop --calcite-accordion-item-background-color: Specifies the component's background color. |
8 |
| - * @prop --calcite-accordion-item-border-color: Specifies the component's border color. |
9 |
| - * @prop --calcite-accordion-item-icon-color-end: Specifies the component's `iconEnd` color. Falls back to `--calcite-accordion-item-icon-color` or current color. |
10 |
| - * @prop --calcite-accordion-item-icon-color-start: Specifies the component's `iconStart` color. Falls back to `--calcite-accordion-item-icon-color` or current color. |
| 6 | + * @prop --calcite-accordion-border-color: Specifies the component's border color. |
| 7 | + * @prop --calcite-accordion-background-color: Specifies the component's background color. |
| 8 | + * @prop --calcite-accordion-text-color: Specifies the component's text color. |
| 9 | + * @prop --calcite-accordion-text-color-hover: Specifies the component's main text color on hover. |
| 10 | + * @prop --calcite-accordion-text-color-press: Specifies the component's main text color when pressed. |
| 11 | + * @prop --calcite-accordion-item-background-color: [Deprecated] Use `--calcite-accordion-background-color`. Specifies the component's background color. |
| 12 | + * @prop --calcite-accordion-item-border-color: [Deprecated] Use `--calcite-accordion-border-color`. Specifies the component's border color. |
11 | 13 | * @prop --calcite-accordion-item-content-space: Specifies the component's padding.
|
12 |
| - * @prop --calcite-accordion-item-end-icon-color: [Deprecated] Use `--calcite-accordion-item-icon-color-end`. Specifies the component's `iconEnd` color. Falls back to `--calcite-accordion-item-icon-color` or current color. |
| 14 | + * @prop --calcite-accordion-item-end-icon-color: Specifies the component's `iconEnd` color. Falls back to `--calcite-accordion-item-icon-color` or current color. |
13 | 15 | * @prop --calcite-accordion-item-expand-icon-color: Specifies the component's expand icon color.
|
14 | 16 | * @prop --calcite-accordion-item-header-background-color: Specifies the component's `heading` background color.
|
15 | 17 | * @prop --calcite-accordion-item-heading-text-color: Specifies the component's `heading` text color.
|
16 |
| - * @prop --calcite-accordion-item-icon-color: Specifies the component's default icon color. |
17 |
| - * @prop --calcite-accordion-item-start-icon-color: [Deprecated] Use `--calcite-accordion-item-icon-color-start`. Specifies the component's `iconStart` color. Falls back to `--calcite-accordion-item-icon-color` or current color. |
18 |
| - * @prop --calcite-accordion-item-text-color: Specifies the component's text color. |
19 |
| - * @prop --calcite-accordion-text-color-hover: [Deprecated] Use `--calcite-accordion-item-text-color-hover`. Specifies the component's main text color on hover. |
20 |
| - * @prop --calcite-accordion-text-color-pressed: [Deprecated] Use `--calcite-accordion-item-text-color-press`. Specifies the component's main text color when pressed. |
21 |
| - * @prop --calcite-accordion-text-color: [Deprecated] Use `--calcite-accordion-item-text-color`. Specifies the component's text color. |
| 18 | + * @prop --calcite-accordion-item-icon-color: [Deprecated] Use `--calcite-icon-color`. Specifies the component's default icon color. |
| 19 | + * @prop --calcite-accordion-item-start-icon-color: Specifies the component's `iconStart` color. Falls back to `--calcite-accordion-item-icon-color` or current color. |
| 20 | + * @prop --calcite-accordion-item-text-color: [Deprecated] Use `--calcite-accordion-text-color`. Specifies the component's text color. |
| 21 | + * @prop --calcite-accordion-item-text-color-hover: [Deprecated] Use `--calcite-accordion-text-color-hover`. Specifies the component's text color on hover. |
| 22 | + * @prop --calcite-accordion-item-text-color-press: [Deprecated] Use `--calcite-accordion-text-color-press`. Specifies the component's text color on press. |
22 | 23 | */
|
23 | 24 |
|
24 | 25 | %icon-position {
|
|
35 | 36 | flex-col
|
36 | 37 | no-underline;
|
37 | 38 |
|
38 |
| - color: var(--calcite-accordion-item-text-color, var(--calcite-accordion-text-color, var(--calcite-color-text-3))); |
39 |
| - background-color: var(--calcite-accordion-item-background-color); |
| 39 | + color: var(--calcite-accordion-text-color, var(--calcite-accordion-item-text-color, var(--calcite-color-text-3))); |
| 40 | + background-color: var(--calcite-accordion-background-color, var(--calcite-accordion-item-background-color)); |
40 | 41 | border-width: 0;
|
41 | 42 |
|
42 | 43 | .header {
|
|
72 | 73 | border-block-end-width: var(--calcite-border-width-sm);
|
73 | 74 | border-block-end-style: solid;
|
74 | 75 | border-color: var(
|
75 |
| - --calcite-accordion-item-border-color, |
76 |
| - var(--calcite-accordion-border-color, theme("borderColor.color.2")) |
| 76 | + --calcite-accordion-border-color, |
| 77 | + var(--calcite-accordion-item-border-color, theme("borderColor.color.2")) |
77 | 78 | );
|
78 | 79 | }
|
79 | 80 |
|
|
130 | 131 | .heading {
|
131 | 132 | color: var(
|
132 | 133 | --calcite-accordion-item-heading-text-color,
|
133 |
| - var(--calcite-accordion-text-color-pressed, var(--calcite-color-text-1)) |
| 134 | + var(--calcite-accordion-text-color-press, var(--calcite-color-text-1)) |
134 | 135 | );
|
135 | 136 | }
|
136 | 137 | }
|
|
193 | 194 | .expand-icon {
|
194 | 195 | color: var(
|
195 | 196 | --calcite-accordion-item-expand-icon-color,
|
196 |
| - var(--calcite-accordion-item-text-color, var(--calcite-accordion-text-color, var(--calcite-color-text-3))) |
| 197 | + var(--calcite-accordion-text-color, var(--calcite-accordion-item-text-color, var(--calcite-color-text-3))) |
197 | 198 | );
|
198 | 199 | margin-inline-start: var(--calcite-internal-accordion-item-icon-spacing-start);
|
199 | 200 | margin-inline-end: var(--calcite-internal-accordion-item-icon-spacing-end);
|
|
217 | 218 | .heading {
|
218 | 219 | color: var(
|
219 | 220 | --calcite-accordion-item-heading-text-color,
|
220 |
| - var(--calcite-accordion-item-text-color-hover, var(--calcite-color-text-2)) |
| 221 | + var( |
| 222 | + --calcite-accordion-text-color-hover, |
| 223 | + var(--calcite-accordion-item-text-color-hover, var(--calcite-color-text-2)) |
| 224 | + ) |
221 | 225 | );
|
222 | 226 | }
|
223 | 227 | }
|
224 | 228 |
|
225 | 229 | :host([expanded]) {
|
226 | 230 | color: var(
|
227 |
| - --calcite-accordion-item-text-color, |
228 |
| - var(--calcite-accordion-text-color, var(--calcite-accordion-text-color-pressed, var(--calcite-color-text-1))) |
| 231 | + --calcite-accordion-text-color-press, |
| 232 | + var(--calcite-accordion-text-color, var(--calcite-accordion-item-text-color, var(--calcite-color-text-1))) |
229 | 233 | );
|
230 | 234 |
|
231 | 235 | .header {
|
|
236 | 240 | color: var(
|
237 | 241 | --calcite-accordion-item-expand-icon-color,
|
238 | 242 | var(
|
239 |
| - --calcite-accordion-item-text-color, |
240 |
| - var(--calcite-accordion-text-color, var(--calcite-accordion-item-text-color-hover, var(--calcite-color-text-2))) |
| 243 | + --calcite-accordion-text-color-hover, |
| 244 | + var( |
| 245 | + --calcite-accordion-text-color, |
| 246 | + var( |
| 247 | + --calcite-accordion-item-text-color, |
| 248 | + var(--calcite-accordion-item-text-color-hover, var(--calcite-color-text-2)) |
| 249 | + ) |
| 250 | + ) |
241 | 251 | )
|
242 | 252 | );
|
243 | 253 | transform: rotate(var(--calcite-internal-accordion-item-active-icon-rotation));
|
|
248 | 258 |
|
249 | 259 | .description {
|
250 | 260 | color: var(
|
251 |
| - --calcite-accordion-item-text-color, |
252 |
| - var(--calcite-accordion-text-color, var(--calcite-accordion-item-text-color-hover, var(--calcite-color-text-2))) |
| 261 | + --calcite-accordion-text-color-hover, |
| 262 | + var( |
| 263 | + --calcite-accordion-text-color, |
| 264 | + var( |
| 265 | + --calcite-accordion-item-text-color, |
| 266 | + var(--calcite-accordion-item-text-color-hover, var(--calcite-color-text-2)) |
| 267 | + ) |
| 268 | + ) |
253 | 269 | );
|
254 | 270 | }
|
255 | 271 |
|
|
0 commit comments