fix: add aria-labelledby to modal, htmlFor/id to form labels, autoFocus on open
This commit is contained in:
@@ -27,6 +27,7 @@ export function FeedbackModal({
|
||||
className="fixed inset-0 z-50 flex items-center justify-center p-4"
|
||||
role="dialog"
|
||||
aria-modal="true"
|
||||
aria-labelledby="feedback-modal-title"
|
||||
>
|
||||
<div
|
||||
className="absolute inset-0 bg-black/70 backdrop-blur-sm"
|
||||
@@ -35,7 +36,7 @@ export function FeedbackModal({
|
||||
/>
|
||||
<div className="relative z-10 w-full max-w-lg rounded-2xl border border-zinc-800 bg-zinc-950 p-7 shadow-2xl">
|
||||
<div className="mb-5 flex items-center justify-between">
|
||||
<h2 className="text-base font-bold text-white">Send Feedback</h2>
|
||||
<h2 id="feedback-modal-title" className="text-base font-bold text-white">Send Feedback</h2>
|
||||
<button
|
||||
onClick={onClose}
|
||||
className="text-zinc-500 hover:text-zinc-300"
|
||||
|
||||
Reference in New Issue
Block a user