Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Remove backdrop filter from button #177

Merged
merged 1 commit into from
Sep 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/components/Button/Button.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,32 +311,27 @@ function buttonVariants({
return css`
border: ${borderWidth} solid transparent;
background: transparent;
backdrop-filter: blur(0px);
color: ${color};

&:hover {
border: ${borderWidth} solid transparent;
background: ${rgba(color, 0.1)};
backdrop-filter: blur(1.5px);
/* color: hoverColorDark */
color: ${hoverColor};
}
`;
case 'transparent':
return css`
background: ${rgba(color, 0.6)};
backdrop-filter: blur(4px);
color: ${white};

&:active {
background: ${rgba(shade(0.2, activeColor), 0.75)};
backdrop-filter: blur(4px);
transform: scale(0.98);
}

&:hover:not(:active) {
background: ${rgba(color, 0.675)};
backdrop-filter: blur(4px);
/* if: grow */
/* transform: scale(1.01); */
/* box-shadow: 0 0 0 0 rgba(black, 0.1); */
Expand Down