File tree 2 files changed +18
-0
lines changed
packages/calcite-components/src/components/block
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -494,6 +494,11 @@ describe("calcite-block", () => {
494
494
targetProp : "backgroundColor" ,
495
495
state : "hover" ,
496
496
} ,
497
+ "--calcite-block-header-background-color-press" : {
498
+ shadowSelector : `.${ CSS . toggle } ` ,
499
+ targetProp : "backgroundColor" ,
500
+ state : { press : `calcite-block >>> .${ CSS . toggle } ` } ,
501
+ } ,
497
502
"--calcite-block-text-color" : [
498
503
{ shadowSelector : `.${ CSS . description } ` , targetProp : "color" } ,
499
504
{ shadowSelector : `.${ CSS . contentStart } ` , targetProp : "color" } ,
Original file line number Diff line number Diff line change 6
6
* @prop --calcite-block-border-color: Specifies the component's border color.
7
7
* @prop --calcite-block-header-background-color: Specifies the component's `heading` background color.
8
8
* @prop --calcite-block-header-background-color-hover: Specifies the component's `heading` background color when hovered.
9
+ * @prop --calcite-block-header-background-color-press: Specifies the component's `heading` background color when pressed.
9
10
* @prop --calcite-block-heading-text-color: Specifies the component's `heading` text color.
10
11
* @prop --calcite-block-heading-text-color-press: When the component is `expanded`, specifies the `heading` text color.
11
12
* @prop --calcite-block-padding: [Deprecated] Specifies the padding of the component's `default` slot.
93
94
& :focus {
94
95
@apply focus-inset ;
95
96
}
97
+ & :active {
98
+ background-color : var (--calcite-block-header-background-color-press , var (--calcite-color-foreground-3 ));
99
+ }
96
100
}
97
101
98
102
calcite-loader [inline ] {
@@ -210,6 +214,15 @@ calcite-action-menu {
210
214
.header .title .heading {
211
215
color : var (--calcite-block-heading-text-color-press , var (--calcite-color-text-1 ));
212
216
}
217
+
218
+ .description {
219
+ color : var (--calcite-block-text-color , var (--calcite-color-text-2 ));
220
+ }
221
+
222
+ .icon--start ,
223
+ .icon--end {
224
+ color : var (--calcite-block-text-color , var (--calcite-color-text-1 ));
225
+ }
213
226
}
214
227
215
228
@include base-component ();
You can’t perform that action at this time.
0 commit comments