Skip to content

Commit

Permalink
fix: radix cls
Browse files Browse the repository at this point in the history
  • Loading branch information
sasicodes committed Feb 27, 2024
1 parent e05e34c commit 883a8e3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
19 changes: 9 additions & 10 deletions apps/web/src/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,23 @@
@tailwind components;
@tailwind utilities;

html {
@apply overflow-x-hidden overflow-y-scroll;
}

body {
@apply min-h-screen bg-white text-black antialiased dark:bg-black dark:text-white;
}

/* Start - To fix radix CLS on dropdown and modal */
html {
scrollbar-gutter: stable;
}
body[style], body[data-scroll-locked] {
margin: 0 auto !important;
margin-right: 0 !important;
margin: 0 !important;
}
/* Ends - To fix radix CLS on dropdown and modal */

html {
@apply overflow-x-hidden overflow-y-scroll;
}

body {
@apply min-h-screen bg-white text-black antialiased dark:bg-black dark:text-white;
}

.tape-border {
@apply border border-[#00000020] dark:border-[#ffffff20];
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const DropdownMenu: FC<DropdownMenuProps> = ({
align = 'end'
}) => {
return (
<DropdownMenuPrimitive.Root>
<DropdownMenuPrimitive.Root modal={false}>
<DropdownMenuPrimitive.Trigger className="outline-none">
{trigger}
</DropdownMenuPrimitive.Trigger>
Expand Down

0 comments on commit 883a8e3

Please sign in to comment.