diff --git a/react/ui-components/README.md b/react/ui-components/README.md index 0459e5ed13..9ee921bf2a 100644 --- a/react/ui-components/README.md +++ b/react/ui-components/README.md @@ -58,6 +58,7 @@ yarn storybook # Changelog ```bash +0.0.1-beta.19 making CheckBox more customizable and adding custom color for Button 0.0.1-beta.18 updated dropdown option labels 0.0.1-beta.17 updated toast info varinat css and category option css 0.0.1-beta.16 added erroe boundary atom diff --git a/react/ui-components/package.json b/react/ui-components/package.json index 5297b54f9b..f78098e118 100644 --- a/react/ui-components/package.json +++ b/react/ui-components/package.json @@ -1,6 +1,6 @@ { "name": "@egovernments/digit-ui-components", - "version": "0.0.1-beta.18", + "version": "0.0.1-beta.19", "license": "MIT", "main": "dist/index.js", "module": "dist/index.modern.js", diff --git a/react/ui-components/src/atoms/Button.js b/react/ui-components/src/atoms/Button.js index 3ea4b4f7ae..56527965cd 100644 --- a/react/ui-components/src/atoms/Button.js +++ b/react/ui-components/src/atoms/Button.js @@ -7,11 +7,13 @@ const Button = (props) => { //To render the icon const IconRender = () => { const iconFill = - props?.variation === "primary" - ? "#FFFFFF" - : props?.isDisabled - ? "#C5C5C5" - : "#C84C0E"; + props.iconFill? + props.iconFill: + props?.variation === "primary" + ? "#FFFFFF" + : props?.isDisabled + ? "#C5C5C5" + : "#C84C0E"; const iconReq = props?.icon; let width, height; diff --git a/react/ui-components/src/atoms/CheckBox.js b/react/ui-components/src/atoms/CheckBox.js index 4dc5a70d54..73a8894a1c 100644 --- a/react/ui-components/src/atoms/CheckBox.js +++ b/react/ui-components/src/atoms/CheckBox.js @@ -21,7 +21,7 @@ const CheckBox = ({ }) => { const { t } = useTranslation(); const userType = pageType || window?.Digit?.SessionStorage.get("userType"); - let styles = props.styles; + let styles = props?.styles; const sentenceCaseLabel = StringManipulator("TOSENTENCECASE", label); @@ -29,10 +29,10 @@ const CheckBox = ({
{isLabelFirst ? ( -

+

{customLabelMarkup ? ( <> {t("COMMON_CERTIFY_ONE")} @@ -47,27 +47,27 @@ const CheckBox = ({ )}

) : null} -
+
+ />

- +

{!isLabelFirst ? ( -

+

{customLabelMarkup ? ( <> {t("COMMON_CERTIFY_ONE")}