Skip to content

Commit

Permalink
fix: consistent z-index across all modal and dialog components (#2582)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnthecat authored Nov 6, 2024
1 parent 43a0337 commit cc8d6ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/renderer/shared/ui-kit/Dropdown/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const Content = ({ children }: PropsWithChildren) => {
<Surface
elevation={1}
className={cnTw(
'flex flex-col',
'z-50 flex flex-col',
'h-max max-h-[--radix-popper-available-height] max-w-60',
'min-w-20 overflow-hidden duration-100 animate-in fade-in zoom-in-95',
)}
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/shared/ui-kit/Popover/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const Content = ({ children }: PropsWithChildren) => {
data-testid={testId}
onClick={(e) => e.stopPropagation()}
>
<div className="rounded-md border border-token-container-border bg-block-background-default text-body shadow-shadow-2 duration-100 animate-in fade-in zoom-in-95">
<div className="z-50 rounded-md border border-token-container-border bg-block-background-default text-body shadow-shadow-2 duration-100 animate-in fade-in zoom-in-95">
{children}
</div>
</RadixPopover.Content>
Expand Down

0 comments on commit cc8d6ce

Please sign in to comment.