Skip to content

Commit

Permalink
Flyout Box Shadow Fix (#253)
Browse files Browse the repository at this point in the history
* Fixing an issue with how the box shadow was rendering.

* Syntax tweak

* Removing unnecessary box-shadow.
  • Loading branch information
gjones authored Dec 1, 2023
1 parent d855c7b commit 2637aa9
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions src/components/Flyout/Flyout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,26 +80,25 @@ const FlyoutContent = styled(DialogContent)<{
gap: ${theme.click.flyout.space.gap};
border-left: 1px solid ${theme.click.flyout.color.stroke.default};
background: ${theme.click.flyout.color.background.default};
box-shadow: -6px 0px 10px 0px ${
theme.click.flyout.shadow.default
}, -5px 0px 20px 0px ${theme.click.flyout.shadow.default};
@media (max-width: 1024px) {
${
$strategy === "relative"
? `
position: absolute !important;`
: ""
box-shadow: ${theme.click.flyout.shadow.default}};
@media (max-width: 1024px) {
${
$strategy === "relative"
? `
position: absolute !important;`
: ""
}
overflow: hidden;
transform: translateX(calc(100% - 50px));
transition: 0.3s ease-in-out;
&:hover,
&.active,
&:focus-within {
transform: translateX(0);
left: auto;
}
}
overflow: hidden;
transform: translateX(calc(100% - 50px));
transition: 0.3s ease-in-out;
&:hover,
&.active,
&:focus-within {
transform: translateX(0);
left: auto;
}
}
`}
`;
const FlyoutContainer = styled.div`
Expand Down

1 comment on commit 2637aa9

@vercel
Copy link

@vercel vercel bot commented on 2637aa9 Dec 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

click-ui – ./

click-ui-git-main-clickhouse.vercel.app
click-ui.vercel.app
click-ui-clickhouse.vercel.app

Please sign in to comment.