|
8 | 8 | @include pfe-accordion-header; |
9 | 9 |
|
10 | 10 | button { |
11 | | - @include pfe-trigger-button; // border 3px |
12 | | - @include pfe-trigger-color-light; |
| 11 | + @include pfe-trigger-button($component-name: accordion); // border 3px |
| 12 | + @include pfe-trigger-color($component-name: accordion); |
13 | 13 |
|
14 | 14 | &[aria-expanded="true"] { |
15 | | - @include pfe-trigger-color-light-expanded; |
| 15 | + @include pfe-trigger-color-expanded($component-name: accordion); |
16 | 16 | @include pfe-trigger-expanded; |
17 | 17 | } |
18 | 18 |
|
19 | 19 | &[aria-expanded="true"]::after { |
20 | | - @include pfe-chevron-expanded-true; |
| 20 | + @include pfe-chevron-expanded; |
21 | 21 | } |
22 | 22 |
|
23 | 23 | &[aria-expanded="false"]::after { |
24 | | - @include pfe-chevron-expanded-false; |
| 24 | + @include pfe-chevron-expanded($state: false); |
25 | 25 | } |
26 | 26 | } |
27 | 27 | } |
28 | 28 |
|
29 | | -////////// last child |
30 | | - |
31 | | -// @TODO: add lighter/lightest and darker/darkest colors. |
32 | | - |
33 | | -// :host([color="darker"]:last-of-type), |
34 | | -// :host([color="darkest"]:last-of-type) { |
35 | | -// button[aria-expanded="false"] { |
36 | | -// @include pfe-trigger-button-last($theme: dark); |
37 | | -// } |
38 | | -// } |
39 | | - |
40 | | -// :host([color="lighter"]:last-of-type), |
41 | | -// :host([color="lightest"]:last-of-type) { |
42 | | -// button[aria-expanded="false"] { |
43 | | -// @include pfe-trigger-button-last($theme: light); |
44 | | -// } |
45 | | -// } |
46 | | - |
47 | | -// :host([color="darker"]:first-child), |
48 | | -// :host([color="darkest"]:first-child) { |
49 | | -// button { |
50 | | -// @include pfe-trigger-button-first($theme: dark); |
51 | | -// } |
52 | | -// } |
53 | | - |
54 | 29 | :host(:first-child), |
55 | 30 | :host([color="lighter"]:first-child), |
56 | 31 | :host([color="lightest"]:first-child) { |
|
77 | 52 |
|
78 | 53 | :host([on="dark"]) { |
79 | 54 | button { |
80 | | - @include pfe-trigger-color-dark; |
| 55 | + @include pfe-trigger-color($theme: dark, $component-name: accordion); |
81 | 56 |
|
82 | 57 | &[aria-expanded="true"] { |
83 | | - @include pfe-trigger-color-dark-expanded; |
| 58 | + @include pfe-trigger-color-expanded($theme: dark, $component-name: accordion); |
84 | 59 | } |
85 | 60 | } |
86 | 61 | } |
87 | | - |
88 | | -// @TODO: add lighter/lightest and darker/darkest colors. |
89 | | - |
90 | | -// :host([color="lighter"]), |
91 | | -// :host([color="lightest"]) { |
92 | | -// button { |
93 | | -// @include pfe-trigger-color-lightest; |
94 | | - |
95 | | -// &[aria-expanded="true"] { |
96 | | -// @include pfe-trigger-color-light-expanded; |
97 | | -// } |
98 | | -// } |
99 | | -// } |
100 | | - |
101 | | -// :host([color="darker"]), |
102 | | -// :host([color="darkest"]) { |
103 | | -// button { |
104 | | -// @include pfe-trigger-color-darkest; |
105 | | - |
106 | | -// &[aria-expanded="true"] { |
107 | | -// @include pfe-trigger-color-darkest-expanded; |
108 | | -// } |
109 | | -// } |
110 | | -// } |
0 commit comments