Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/improve visibility delete icon in chip autocomplete pfr 737 #3266

14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
# [2.164.0](https://github.com/bettyblocks/material-ui-component-set/compare/v2.163.0...v2.164.0) (2023-10-16)
# [2.165.0](https://github.com/bettyblocks/material-ui-component-set/compare/v2.164.0...v2.165.0) (2023-10-17)


### Bug Fixes

* existing var ([25b3a8d](https://github.com/bettyblocks/material-ui-component-set/commit/25b3a8d9cbe1831ab29c9e729449fcad2aeabc29))


### Features

* fix checkbox for state values ([5e9eced](https://github.com/bettyblocks/material-ui-component-set/commit/5e9eced617d3bd8d2301a59b84e86883a2ffd998))

## [2.163.1](https://github.com/bettyblocks/material-ui-component-set/compare/v2.163.0...v2.163.1) (2023-10-13)


### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "component-set",
"version": "2.164.0",
"version": "2.165.0",
"main": "dist/templates.json",
"license": "UNLICENSED",
"private": false,
Expand Down
6 changes: 5 additions & 1 deletion src/components/checkboxinput.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
const isDev = env === 'dev';

function boolify(textValue) {
if (typeof textValue === 'boolean') {
return textValue;
}
return ['on', 'true', 'yes'].includes(textValue.trim().toLowerCase());
}

Expand All @@ -30,7 +33,8 @@
const parsedLabel = useText(label);
const labelText = parsedLabel;
const resolvedValue = useText(value);
const [checked, setChecked] = usePageState(boolify(resolvedValue));
const [checkedState, setChecked] = usePageState(resolvedValue);
const checked = boolify(checkedState);
const dataComponentAttributeValue = useText(dataComponentAttribute);
const helperTextResolved = useText(helperText);
const validationValueMissingText = useText(validationValueMissing);
Expand Down
7 changes: 7 additions & 0 deletions src/components/multiAutoCompleteInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -1055,6 +1055,13 @@
style.getColor(backgroundColorChip),
'!important',
],
'& .MuiSvgIcon-root': {
color: ({ options: { backgroundColorChip, textColorChip } }) =>
backgroundColorChip !== 'Light' && [
style.getColor(textColorChip),
'!important',
],
},
},
},
'& .MuiIconButton-root': {
Expand Down
Loading