Skip to content

Commit f8559dd

Browse files
CWSwastikCopilot
andauthored
fix: use ARIA attributes
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 64b5844 commit f8559dd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

frontend/src/components/EditProfileModal.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,12 @@ export default function EditProfileModal({
5757
};
5858

5959
return (
60-
<div className="fixed inset-0 bg-dark-background flex items-center justify-center z-50 shadow-5xl">
60+
<div
61+
className="fixed inset-0 bg-dark-background flex items-center justify-center z-50 shadow-5xl"
62+
role="dialog"
63+
aria-modal="true"
64+
aria-labelledby="edit-profile-title"
65+
>
6166
<div className="bg-highlight-dark text-white p-6 rounded-lg w-[90%] max-w-lg shadow-xl relative">
6267
<button
6368
className="absolute top-3 right-3 text-gray-400 hover:text-white hover:cursor-pointer"

0 commit comments

Comments
 (0)