Skip to content

Commit 3e10c09

Browse files
authored
Merge pull request #999 from JoeMakuta/fix/add-focus-visible-to-share-button
fix: add focus-visible styles to share button for improved accessibility
2 parents ec5f739 + 0b4ba58 commit 3e10c09

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

surfsense_web/components/new-chat/chat-share-button.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export function ChatShareButton({ thread, onVisibilityChange, className }: ChatS
199199
className={cn(
200200
"w-full flex items-center gap-2.5 px-2.5 py-2 rounded-md transition-all",
201201
"hover:bg-accent/50 dark:hover:bg-white/10 cursor-pointer",
202-
"focus:outline-none",
202+
"focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
203203
isSelected && "bg-accent/80 dark:bg-white/10"
204204
)}
205205
>
@@ -248,7 +248,7 @@ export function ChatShareButton({ thread, onVisibilityChange, className }: ChatS
248248
className={cn(
249249
"w-full flex items-center gap-2.5 px-2.5 py-2 rounded-md transition-all",
250250
"hover:bg-accent/50 dark:hover:bg-white/10 cursor-pointer",
251-
"focus:outline-none",
251+
"focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
252252
"disabled:opacity-50 disabled:cursor-not-allowed"
253253
)}
254254
>

0 commit comments

Comments
 (0)