Skip to content

Commit

Permalink
feat: 모달 접근성 속성 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
juyeong-s committed Apr 5, 2023
1 parent 36656cd commit 4fbf651
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 6 additions & 1 deletion client/src/components/WorkspaceList/AddButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ interface AddButtonProps {
}
function AddButton({ onClick }: AddButtonProps) {
return (
<button className={style.button} onClick={onClick} aria-label="추가">
<button
className={style.button}
onClick={onClick}
aria-label="추가"
aria-haspopup="true"
>
<MdAdd size={20} color="white" />
</button>
);
Expand Down
7 changes: 4 additions & 3 deletions client/src/components/common/Modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ function Modal({ title, isDark = false, children, onClose }: ModalProps) {
<Portal>
<div
className={cx(style.modal, { 'dark-modal': isDark })}
role="alertdialog"
role="dialog"
aria-modal
aria-labelledby="modal"
tabIndex={0}
>
<div className={style.dimmer} onClick={onClose} tabIndex={0} />
<div className={style.dimmer} onClick={onClose} />

<div className={style['out-container']}>
<div className={style.header} id="modal-heading">
<div className={style.header} id="modal">
<h2 className={style.title}>{title}</h2>
<button
className={style['close-modal']}
Expand Down

0 comments on commit 4fbf651

Please sign in to comment.