Skip to content

Commit

Permalink
removed hover styling on button if the logic determines that there sh…
Browse files Browse the repository at this point in the history
…ould be agencySettingsConfigs
  • Loading branch information
corypride committed May 10, 2024
1 parent 8cf4bf8 commit d728b65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/components/Button/Button.styled.tsx
Expand Up @@ -91,8 +91,9 @@ export const Button = styled.div<{
return `color: ${palette.solid.darkblue}`;
}
}};
${({ buttonColor, noHover }) => {
${({ buttonColor, noHover, agencySettingsConfigs }) => {
if (buttonColor) return "opacity: 0.8;";
if (agencySettingsConfigs) return "unset";
return !noHover && `background-color: ${palette.solid.lightgrey2};`;
}}
a {
Expand Down

0 comments on commit d728b65

Please sign in to comment.