Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/components/Overlays/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { useAppRootContext } from 'hooks/useAppRootContext';

import { Drawer } from '@xelene/vaul-with-scroll-fix';

import { VisuallyHidden } from 'components/Service/VisuallyHidden/VisuallyHidden';
import { ModalClose } from './components/ModalClose/ModalClose';
import { ModalHeader } from './components/ModalHeader/ModalHeader';
import { ModalOverlay } from './components/ModalOverlay/ModalOverlay';
Expand Down Expand Up @@ -108,7 +109,9 @@ export const Modal = forwardRef<HTMLDivElement, ModalProps>(({
ref={ref}
className={classNames(styles.wrapper, className)}
{...restProps}
aria-describedby={undefined}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hey, thank you for your PR.

aria-describedby should be undefined without it. You also rewrite it for restProps in case someone wants to pass it, did you do it on purpose?

>
<VisuallyHidden><Drawer.Title /></VisuallyHidden>
{header}
<div className={styles.body}>
{children}
Expand Down