fix(git-panel): add role and aria attributes for accessibility

This commit is contained in:
Haileyesus
2026-02-24 13:57:12 +03:00
parent b398bc908f
commit af283e7dfd

View File

@@ -50,7 +50,12 @@ export default function NewBranchModal({
return ( return (
<div className="fixed inset-0 z-50 flex items-center justify-center p-4"> <div className="fixed inset-0 z-50 flex items-center justify-center p-4">
<div className="fixed inset-0 bg-black/60 backdrop-blur-sm" onClick={onClose} /> <div className="fixed inset-0 bg-black/60 backdrop-blur-sm" onClick={onClose} />
<div className="relative bg-card border border-border rounded-xl shadow-2xl max-w-md w-full overflow-hidden"> <div
className="relative bg-card border border-border rounded-xl shadow-2xl max-w-md w-full overflow-hidden"
role="dialog"
aria-modal="true"
aria-labelledby="new-branch-title"
>
<div className="p-6"> <div className="p-6">
<h3 className="text-lg font-semibold text-foreground mb-4">Create New Branch</h3> <h3 className="text-lg font-semibold text-foreground mb-4">Create New Branch</h3>