Skip to content

Commit ec91f22

Browse files
committed
chore: code reviewwwwww
1 parent 9244fe1 commit ec91f22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/notifications/src/styled/StyledBase.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ const colorStyles = ({ theme, $type, $isFloating }: IStyledBaseProps) => {
7171
theme
7272
});
7373

74-
const boxShadow = shadows.lg(offsetY, blurRadius, color);
74+
const boxShadow = $isFloating ? shadows.lg(offsetY, blurRadius, color) : undefined;
7575

7676
return css`
7777
border-color: ${borderColor};
78-
box-shadow: ${$isFloating && boxShadow};
78+
box-shadow: ${boxShadow};
7979
background-color: ${backgroundColor};
8080
color: ${foregroundColor};
8181
`;

0 commit comments

Comments
 (0)