@onesy/ui-react 1.0.95 → 1.0.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Checkbox/Checkbox.js +1 -1
- package/esm/Checkbox/Checkbox.js +1 -1
- package/esm/index.js +1 -1
- package/package.json +1 -1
package/Checkbox/Checkbox.js
CHANGED
@@ -259,7 +259,7 @@ const Checkbox = react_1.default.forwardRef((props_, ref) => {
|
|
259
259
|
if (['text', 'outlined', undefined].includes(version))
|
260
260
|
styles.iconItem.color = theme.palette.background.default.primary;
|
261
261
|
let colorValue = color;
|
262
|
-
if (!value)
|
262
|
+
if (!value && tonal)
|
263
263
|
colorValue = colorUnchecked;
|
264
264
|
if (indeterminate)
|
265
265
|
colorValue = colorIndeterminate;
|
package/esm/Checkbox/Checkbox.js
CHANGED
@@ -280,7 +280,7 @@ const Checkbox = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
|
280
280
|
styles.iconItem.color = styles.iconDone.color;
|
281
281
|
if (['text', 'outlined', undefined].includes(version)) styles.iconItem.color = theme.palette.background.default.primary;
|
282
282
|
let colorValue = color;
|
283
|
-
if (!value) colorValue = colorUnchecked;
|
283
|
+
if (!value && tonal) colorValue = colorUnchecked;
|
284
284
|
if (indeterminate) colorValue = colorIndeterminate;
|
285
285
|
return /*#__PURE__*/React.createElement(IconButton, _extends({
|
286
286
|
ref: ref,
|
package/esm/index.js
CHANGED