Skip to content

Commit

Permalink
Add column-style-checkbox css variables
Browse files Browse the repository at this point in the history
  • Loading branch information
jkusa committed Feb 4, 2022
1 parent 910799a commit 02160b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rust/perspective-viewer/src/less/column-style.less
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,21 @@
}

input[type="checkbox"] {
appearance: none;
appearance: var(--column-style-checkbox--appearance, auto);
font-family: var(--button--font-family, inherit);
font-size: 16px;
text-align: center;

&:checked:after {
content: "\E834";
content: var(--column-style-checkbox-checked--content, none);
}

&:not([disabled]):checked:after {
color: var(--active--color, red);
}

&:after {
content: "\E835";
content: var(--column-style-checkbox-unchecked--content, none);
color: var(--inactive--color, #999);
}
}
Expand Down
3 changes: 3 additions & 0 deletions rust/perspective-viewer/src/themes/material.less
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ perspective-expression-editor[theme="Material Light"],
--column-style-radio--appearance: none;
--column-style-radio-checked--content: "radio_button_checked";
--column-style-radio-unchecked--content: "radio_button_unchecked";
--column-style-checkbox--appearance: none;
--column-style-checkbox-checked--content: "check_box";
--column-style-checkbox-unchecked--content: "check_box_outline_blank";
}

.perspective-viewer-material--dimensions {
Expand Down

0 comments on commit 02160b6

Please sign in to comment.