mirror of
https://github.com/logto-io/logto.git
synced 2025-03-24 22:41:28 -05:00
fix(console): fix toggle tip z-index on modal layer (#3917)
This commit is contained in:
parent
a9c34cd0b6
commit
43dd5e6d11
2 changed files with 5 additions and 3 deletions
|
@ -2,8 +2,8 @@
|
|||
|
||||
.overlay {
|
||||
background: transparent;
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
padding: unset;
|
||||
overflow-y: unset;
|
||||
|
||||
.content {
|
||||
position: relative;
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
import classNames from 'classnames';
|
||||
import type { ReactNode } from 'react';
|
||||
import { useCallback, useState, useRef } from 'react';
|
||||
import ReactModal from 'react-modal';
|
||||
|
||||
import usePosition from '@/hooks/use-position';
|
||||
import * as modalStyles from '@/scss/modal.module.scss';
|
||||
import type { HorizontalAlignment } from '@/types/positioning';
|
||||
import { onKeyDownHandler } from '@/utils/a11y';
|
||||
|
||||
|
@ -79,7 +81,7 @@ function ToggleTip({
|
|||
shouldCloseOnEsc
|
||||
isOpen={isOpen}
|
||||
className={styles.content}
|
||||
overlayClassName={styles.overlay}
|
||||
overlayClassName={classNames(modalStyles.overlay, styles.overlay)}
|
||||
onRequestClose={onClose}
|
||||
onAfterOpen={mutate}
|
||||
>
|
||||
|
|
Loading…
Add table
Reference in a new issue