Skip to content

Commit 299073b

Browse files
committed
improve control/switch print layout
1 parent b236faa commit 299073b

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

src/components/Checkbox/checkbox.scss

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,15 @@ $control-indicator-spacing: $eccgui-size-inline-whitespace !default;
2424
// $switch-background-color-active: rgba($gray1, 0.5) !default;
2525
// $switch-background-color-disabled: $button-background-color-disabled !default;
2626
$switch-checked-background-color: $eccgui-color-accent !default;
27-
$switch-checked-background-color-hover: eccgui-color-rgba($switch-checked-background-color, $eccgui-opacity-narrow) !default;
27+
$switch-checked-background-color-hover: eccgui-color-rgba(
28+
$switch-checked-background-color,
29+
$eccgui-opacity-narrow
30+
) !default;
2831
$switch-checked-background-color-active: $switch-checked-background-color-hover !default;
29-
$switch-checked-background-color-disabled: eccgui-color-rgba($switch-checked-background-color, $eccgui-opacity-disabled) !default;
32+
$switch-checked-background-color-disabled: eccgui-color-rgba(
33+
$switch-checked-background-color,
34+
$eccgui-opacity-disabled
35+
) !default;
3036

3137
@import "~@blueprintjs/core/src/components/forms/controls"; // Checkbox, Radio, Switch
3238

@@ -73,3 +79,9 @@ $switch-checked-background-color-disabled: eccgui-color-rgba($switch-checked-bac
7379
display: inline-block;
7480
vertical-align: text-top;
7581
}
82+
83+
@media print {
84+
.#{$ns}-control {
85+
print-color-adjust: exact;
86+
}
87+
}

0 commit comments

Comments
 (0)