Skip to content

Commit 387159f

Browse files
CopilotFuAdd21
andauthored
fix: restore focus ring styles on readonly inputs for accessibility
Agent-Logs-Url: https://github.com/FuAdd21/LinkHub/sessions/045a9629-fc4d-40aa-a7e0-5e3fe0a00ceb Co-authored-by: FuAdd21 <207213677+FuAdd21@users.noreply.github.com>
1 parent 8bf4ef4 commit 387159f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

link-sharing-frontend/src/pages/dashboard/DashboardLinks.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ export default function DashboardLinks({ userData, links, onRefresh, onUserChang
8989
<input
9090
readOnly
9191
value={userData?.full_name || "Julian Marcus"}
92-
className="w-full bg-surface-container-high/50 border border-outline-variant/5 rounded-xl px-5 py-3.5 text-white font-bold text-sm outline-none"
92+
className="w-full bg-surface-container-high/50 border border-outline-variant/5 rounded-xl px-5 py-3.5 text-white font-bold text-sm focus:ring-2 focus:ring-primary/40 outline-none transition-all"
9393
/>
9494
</div>
9595
<div className="space-y-2">
9696
<label className="text-[10px] font-black uppercase tracking-[0.2em] text-outline px-1">Username</label>
9797
<input
9898
readOnly
9999
value={`@${userData?.username || "julianmarcus"}`}
100-
className="w-full bg-surface-container-high/50 border border-outline-variant/5 rounded-xl px-5 py-3.5 text-white font-bold text-sm outline-none"
100+
className="w-full bg-surface-container-high/50 border border-outline-variant/5 rounded-xl px-5 py-3.5 text-white font-bold text-sm focus:ring-2 focus:ring-primary/40 outline-none transition-all"
101101
/>
102102
</div>
103103
</div>
@@ -108,7 +108,7 @@ export default function DashboardLinks({ userData, links, onRefresh, onUserChang
108108
readOnly
109109
value={userData?.bio || "Digital curator exploring the intersection of modern hardware and atmospheric software design."}
110110
rows={3}
111-
className="w-full bg-surface-container-high/50 border border-outline-variant/5 rounded-2xl px-5 py-4 text-slate-300 font-medium text-sm outline-none resize-none leading-relaxed"
111+
className="w-full bg-surface-container-high/50 border border-outline-variant/5 rounded-2xl px-5 py-4 text-slate-300 font-medium text-sm focus:ring-2 focus:ring-primary/40 outline-none transition-all resize-none leading-relaxed"
112112
/>
113113
</div>
114114
</div>

0 commit comments

Comments
 (0)