mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-21 13:37:28 +00:00
Merge 17a6901ca4 into e995fc1c5f
This commit is contained in:
commit
b350a10667
2 changed files with 22 additions and 1 deletions
|
|
@ -19,6 +19,7 @@ export const TreeSelect = ({
|
|||
const { label } = properties;
|
||||
const { visibility, disabledState, checkboxColor, boxShadow } = styles;
|
||||
const textColor = darkMode && styles.textColor === '#000' ? '#fff' : styles.textColor;
|
||||
const darkModeClass = darkMode ? 'theme-dark' : '';
|
||||
const [checked, setChecked] = useState(checkedData);
|
||||
const [expanded, setExpanded] = useState(expandedData);
|
||||
const data = isExpectedDataType(properties.data, 'array');
|
||||
|
|
@ -105,7 +106,7 @@ export const TreeSelect = ({
|
|||
|
||||
return (
|
||||
<div
|
||||
className="custom-checkbox-tree"
|
||||
className={`custom-checkbox-tree ${darkModeClass}`}
|
||||
data-disabled={disabledState}
|
||||
style={{
|
||||
maxHeight: height,
|
||||
|
|
|
|||
|
|
@ -6317,6 +6317,26 @@ input.hide-input-arrows {
|
|||
overflow-y: auto;
|
||||
color: #3e525b;
|
||||
|
||||
&.theme-dark {
|
||||
color: #e4e4e7;
|
||||
|
||||
.react-checkbox-tree {
|
||||
.rct-node {
|
||||
.rct-text {
|
||||
color: #e4e4e7;
|
||||
}
|
||||
.rct-checkbox {
|
||||
input[type="checkbox"] {
|
||||
filter: invert(1);
|
||||
}
|
||||
}
|
||||
.rct-title {
|
||||
color: #e4e4e7;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.react-checkbox-tree label:hover {
|
||||
background: none !important;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue