77$pfe-cta__arrow-size : 0.313em ;
88
99/// ===========================================================================
10- /// DEFUALT CTA
10+ /// DEFAULT CTA
1111/// ===========================================================================
1212:host {
1313 --pfe-cta--main : #{pfe-color (ui-link )} ;
@@ -22,7 +22,7 @@ $pfe-cta__arrow-size: 0.313em;
2222
2323 ::slotted (a ) {
2424 line-height : inherit ;
25- color : var (--pfe-cta--main ) !important ;
25+ color : var (--pfe-cta--main );
2626 transition : all #{pfe-var (animation-timing )} ;
2727
2828 & ::after {
@@ -41,15 +41,15 @@ $pfe-cta__arrow-size: 0.313em;
4141 // }
4242
4343 ::slotted(a :hover ) {
44- color : var (--pfe-cta--main--hover ) !important ;
44+ color : var (--pfe-cta--main--hover );
4545
4646 & ::after {
4747 @include pfe-arrow-color (var (--pfe-cta--main--hover ));
4848 }
4949 }
5050
5151 ::slotted(a :focus ) {
52- color : var (--pfe-cta--main--focus ) !important ;
52+ color : var (--pfe-cta--main--focus );
5353
5454 & ::after {
5555 @include pfe-arrow-color (var (--pfe-cta--main--focus ));
@@ -75,9 +75,11 @@ $pfe-cta__arrow-size: 0.313em;
7575 text-decoration : none ;
7676 line-height : 1.2 ;
7777
78- border-color : var (--pfe-cta--main ) !important ;
79- background : var (--pfe-cta--main ) !important ;
80- color : var (--pfe-cta--aux ) !important ;
78+ border-color : var (--pfe-cta--main );
79+ background : var (--pfe-cta--main );
80+ color : var (--pfe-cta--aux );
81+
82+ --pfe-broadcasted--color--ui-link : var (--pfe-cta--aux );
8183
8284 & ::after {
8385 display : none ;
@@ -86,9 +88,11 @@ $pfe-cta__arrow-size: 0.313em;
8688
8789 ::slotted(a :hover ),
8890 ::slotted(a :focus ) { // Not sure we can lump these together
89- border-color : var (--pfe-cta--main--hover ) !important ;
90- background : var (--pfe-cta--main--hover ) !important ;
91- color : var (--pfe-cta--aux--hover ) !important ;
91+ border-color : var (--pfe-cta--main--hover );
92+ background : var (--pfe-cta--main--hover );
93+ color : var (--pfe-cta--aux--hover );
94+
95+ --pfe-broadcasted--color--ui-link--hover : var (--pfe-cta--aux--hover );
9296 }
9397
9498 // & ::slotted(a:visited), TBD
@@ -109,9 +113,11 @@ $pfe-cta__arrow-size: 0.313em;
109113 text-decoration : none ;
110114 line-height : 1.2 ;
111115
112- border-color : var (--pfe-cta--main ) !important ;
113- background : var (--pfe-cta--aux ) !important ;
114- color : var (--pfe-cta--main ) !important ;
116+ border-color : var (--pfe-cta--main );
117+ background : var (--pfe-cta--aux );
118+ color : var (--pfe-cta--main );
119+
120+ --pfe-broadcasted--color--ui-link--hover : var (--pfe-cta--main );
115121
116122 & ::after {
117123 display : none ;
@@ -120,9 +126,11 @@ $pfe-cta__arrow-size: 0.313em;
120126
121127 ::slotted(a :hover ), // Not sure we can lump these together
122128 ::slotted(a :focus ) {
123- border-color : var (--pfe-cta--main--hover ) !important ;
124- background : var (--pfe-cta--main--hover ) !important ;
125- color : var (--pfe-cta--aux--hover ) !important ;
129+ border-color : var (--pfe-cta--main--hover );
130+ background : var (--pfe-cta--main--hover );
131+ color : var (--pfe-cta--aux--hover );
132+
133+ --pfe-broadcasted--color--ui-link--hover : var (--pfe-cta--aux--hover );
126134 }
127135
128136 // & ::slotted(a:visited), TBD
@@ -158,32 +166,35 @@ $pfe-cta__arrow-size: 0.313em;
158166/// COLOR OVERRIDE: BASE
159167/// ===========================================================================
160168
161- :host ([color = " base" ]) {
162- --pfe-cta--main : #{pfe-color (ui-base )} !important ;
163- --pfe-cta--main--hover : #{pfe-color (ui-base--hover )} !important ;
164- --pfe-cta--aux : #{pfe-color (ui-base--text )} !important ;
165- --pfe-cta--aux--hover : #{pfe-color (ui-base--text--hover )} !important ;
169+ :host ([color = " base" ]),
170+ :host ([color = " base" ][on = " dark" ]) {
171+ --pfe-cta--main : #{pfe-color (ui-base )} ;
172+ --pfe-cta--main--hover : #{pfe-color (ui-base--hover )} ;
173+ --pfe-cta--aux : #{pfe-color (ui-base--text )} ;
174+ --pfe-cta--aux--hover : #{pfe-color (ui-base--text--hover )} ;
166175}
167176
168177
169178/// ===========================================================================
170179/// COLOR OVERRIDE: COMPLEMENT
171180/// ===========================================================================
172181
173- :host ([color = " complement" ]) {
174- --pfe-cta--main : #{pfe-color (ui-complement )} !important ;
175- --pfe-cta--main--hover : #{pfe-color (ui-complement--hover )} !important ;
176- --pfe-cta--aux : #{pfe-color (ui-complement--text )} !important ;
177- --pfe-cta--aux--hover : #{pfe-color (ui-complement--text--hover )} !important ;
182+ :host ([color = " complement" ]),
183+ :host ([color = " complement" ][on = " dark" ]) {
184+ --pfe-cta--main : #{pfe-color (ui-complement )} ;
185+ --pfe-cta--main--hover : #{pfe-color (ui-complement--hover )} ;
186+ --pfe-cta--aux : #{pfe-color (ui-complement--text )} ;
187+ --pfe-cta--aux--hover : #{pfe-color (ui-complement--text--hover )} ;
178188}
179189
180190
181191/// ===========================================================================
182192/// COLOR OVERRIDE: ACCENT
183193/// ===========================================================================
184- :host ([color = " accent" ]) {
185- --pfe-cta--main : #{pfe-color (ui-accent )} !important ;
186- --pfe-cta--main--hover : #{pfe-color (ui-accent--hover )} !important ;
187- --pfe-cta--aux : #{pfe-color (ui-accent--text )} !important ;
188- --pfe-cta--aux--hover : #{pfe-color (ui-accent--text--hover )} !important ;
194+ :host ([color = " accent" ]),
195+ :host ([color = " accent" ][on = " dark" ]) {
196+ --pfe-cta--main : #{pfe-color (ui-accent )} ;
197+ --pfe-cta--main--hover : #{pfe-color (ui-accent--hover )} ;
198+ --pfe-cta--aux : #{pfe-color (ui-accent--text )} ;
199+ --pfe-cta--aux--hover : #{pfe-color (ui-accent--text--hover )} ;
189200}
0 commit comments