Skip to content

Commit

Permalink
fix(ui): increase z index for Slideover and Modal (#2758)
Browse files Browse the repository at this point in the history
In #2725 there were changes to z-index of header and Slideover and Modal
is behind the header. It's visible in creating new token/namespace or in
any modal dialog
  • Loading branch information
erka authored Feb 11, 2024
1 parent 973c231 commit 012e018
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/src/components/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function Modal(props: ModalProps) {

return (
<Transition.Root show={open} as={Fragment}>
<Dialog as="div" className="relative z-10" onClose={setOpen}>
<Dialog as="div" className="relative z-20" onClose={setOpen}>
<Transition.Child
as={Fragment}
enter="ease-out duration-200"
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/Slideover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const SlideOver = forwardRef((props: SlideOverProps, ref: any) => {
<Transition.Root show={open} as={Fragment}>
<Dialog
as="div"
className="relative z-10"
className="relative z-20"
onClose={setOpen}
initialFocus={ref}
>
Expand Down

0 comments on commit 012e018

Please sign in to comment.