diff --git a/libs/remix-ui/checkbox/src/lib/remix-ui-checkbox.tsx b/libs/remix-ui/checkbox/src/lib/remix-ui-checkbox.tsx index b22763d084..d7b2a8fc71 100644 --- a/libs/remix-ui/checkbox/src/lib/remix-ui-checkbox.tsx +++ b/libs/remix-ui/checkbox/src/lib/remix-ui-checkbox.tsx @@ -35,7 +35,7 @@ export const RemixUiCheckbox = ({ title, visibility, display = 'flex', - disabled = true, + disabled = false, tooltipPlacement = 'right' }: RemixUiCheckboxProps) => { diff --git a/libs/remix-ui/static-analyser/src/lib/Button/StaticAnalyserButton.tsx b/libs/remix-ui/static-analyser/src/lib/Button/StaticAnalyserButton.tsx index db660c1d49..18f6282539 100644 --- a/libs/remix-ui/static-analyser/src/lib/Button/StaticAnalyserButton.tsx +++ b/libs/remix-ui/static-analyser/src/lib/Button/StaticAnalyserButton.tsx @@ -6,18 +6,21 @@ interface StaticAnalyserButtonProps { buttonText: string, disabled?: boolean, title?: string + classList?: string } const StaticAnalyserButton = ({ onClick, buttonText, disabled, - title + title, + classList }: StaticAnalyserButtonProps) => { - let classList = "btn btn-sm w-25 btn-primary" - classList += disabled ? " disabled" : "" + const defaultStyle = "btn btn-sm w-25 btn-primary" + const newclassList = disabled && classList.length > 0 ? `${classList} disabled` : + classList.length === 0 && disabled ? `${defaultStyle} disabled` : classList.length > 0 ? `${classList}` : defaultStyle return ( -