mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-05 05:42:39 +02:00
Merge pull request #999 from JoeMakuta/fix/add-focus-visible-to-share-button
fix: add focus-visible styles to share button for improved accessibility
This commit is contained in:
commit
3e10c09cee
1 changed files with 2 additions and 2 deletions
|
|
@ -199,7 +199,7 @@ export function ChatShareButton({ thread, onVisibilityChange, className }: ChatS
|
||||||
className={cn(
|
className={cn(
|
||||||
"w-full flex items-center gap-2.5 px-2.5 py-2 rounded-md transition-all",
|
"w-full flex items-center gap-2.5 px-2.5 py-2 rounded-md transition-all",
|
||||||
"hover:bg-accent/50 dark:hover:bg-white/10 cursor-pointer",
|
"hover:bg-accent/50 dark:hover:bg-white/10 cursor-pointer",
|
||||||
"focus:outline-none",
|
"focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
||||||
isSelected && "bg-accent/80 dark:bg-white/10"
|
isSelected && "bg-accent/80 dark:bg-white/10"
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
|
@ -248,7 +248,7 @@ export function ChatShareButton({ thread, onVisibilityChange, className }: ChatS
|
||||||
className={cn(
|
className={cn(
|
||||||
"w-full flex items-center gap-2.5 px-2.5 py-2 rounded-md transition-all",
|
"w-full flex items-center gap-2.5 px-2.5 py-2 rounded-md transition-all",
|
||||||
"hover:bg-accent/50 dark:hover:bg-white/10 cursor-pointer",
|
"hover:bg-accent/50 dark:hover:bg-white/10 cursor-pointer",
|
||||||
"focus:outline-none",
|
"focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
||||||
"disabled:opacity-50 disabled:cursor-not-allowed"
|
"disabled:opacity-50 disabled:cursor-not-allowed"
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue