Skip to content

Commit

Permalink
Add checkbox props and clause colors (#545)
Browse files Browse the repository at this point in the history
* Add checkbox props and clause colors

* v4.8.4
  • Loading branch information
kapantzak authored Dec 17, 2024
1 parent 839d545 commit 237f8c8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@netdata/netdata-ui",
"version": "4.8.3",
"version": "4.8.4",
"description": "netdata UI kit",
"main": "dist/index.js",
"module": "dist/es6/index.js",
Expand Down
3 changes: 2 additions & 1 deletion src/components/checkbox/checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const Checkbox = forwardRef(
checked,
disabled,
iconProps,
checkboxProps = {},
indeterminate,
Label = Text,
label,
Expand Down Expand Up @@ -55,7 +56,7 @@ export const Checkbox = forwardRef(
{...(indeterminate && { "data-indeterminate": true })}
data-checked={checked}
/>
<StyledCheckbox data-testid="styled-checkbox" disabled={disabled}>
<StyledCheckbox data-testid="styled-checkbox" disabled={disabled} {...checkboxProps}>
{(!!checked || !!indeterminate) && (
<Icon
disabled={disabled}
Expand Down
4 changes: 4 additions & 0 deletions src/theme/dark/colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ const appColors = {
terminalGreenBorder: rawColors.green.green60,
darkBackground: rawColors.neutral.grey05,
integrationMenuItemHover: rawColors.green.green20,

//Dynamic rooms
clauseBg: rawColors.neutral.grey90,
clauseText: rawColors.neutral.white,
}

export default {
Expand Down
4 changes: 4 additions & 0 deletions src/theme/default/colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ const appColors = {
terminalGreenBorder: rawColors.green.green,
darkBackground: rawColors.neutral.grey195,
integrationMenuItemHover: rawColors.neutral.grey180,

//Dynamic rooms
clauseBg: rawColors.neutral.grey180,
clauseText: rawColors.neutral.grey100,
}

export default {
Expand Down

0 comments on commit 237f8c8

Please sign in to comment.