diff --git a/app/client/src/components/designSystems/appsmith/MenuButtonComponent/index.tsx b/app/client/src/components/designSystems/appsmith/MenuButtonComponent/index.tsx index 70f96b29a3..1f6aeeaa4c 100644 --- a/app/client/src/components/designSystems/appsmith/MenuButtonComponent/index.tsx +++ b/app/client/src/components/designSystems/appsmith/MenuButtonComponent/index.tsx @@ -62,14 +62,13 @@ const getCustomHoverColor = ( .lighten(40) .toString() : theme.colors.button.primary.outline.hoverColor; - break; + case ButtonVariantTypes.GHOST: return backgroundColor ? tinycolor(backgroundColor) .lighten(40) .toString() : theme.colors.button.primary.ghost.hoverColor; - break; default: return backgroundColor @@ -77,7 +76,6 @@ const getCustomHoverColor = ( .darken(10) .toString() : theme.colors.button.primary.solid.hoverColor; - break; } }; diff --git a/app/client/src/components/designSystems/blueprint/ButtonComponent.tsx b/app/client/src/components/designSystems/blueprint/ButtonComponent.tsx index 7fc4f995b8..f2b1f5c518 100644 --- a/app/client/src/components/designSystems/blueprint/ButtonComponent.tsx +++ b/app/client/src/components/designSystems/blueprint/ButtonComponent.tsx @@ -84,14 +84,13 @@ const getCustomHoverColor = ( .lighten(40) .toString() : theme.colors.button.primary.outline.hoverColor; - break; + case ButtonVariantTypes.GHOST: return backgroundColor ? tinycolor(backgroundColor) .lighten(40) .toString() : theme.colors.button.primary.ghost.hoverColor; - break; default: return backgroundColor @@ -99,7 +98,6 @@ const getCustomHoverColor = ( .darken(10) .toString() : theme.colors.button.primary.solid.hoverColor; - break; } };