feat: focus visible style update

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei 2024-07-01 20:10:47 +08:00
parent 9f1d8c05e3
commit ee458b82ef
No known key found for this signature in database
GPG Key ID: 0F62D33977F021F7
5 changed files with 5 additions and 2 deletions

View File

@ -108,6 +108,7 @@ export const ActionButton = React.forwardRef<
className={cn(
"no-drag-region flex size-8 items-center text-xl",
active && "bg-zinc-500/15 hover:bg-zinc-500/20",
"focus-visible:bg-zinc-500/30 focus-visible:!outline-none",
className,
)}
variant="ghost"

View File

@ -115,7 +115,7 @@ export const ProfileButton: FC<LoginProps> = memo((props) => {
}
return (
<DropdownMenu>
<DropdownMenuTrigger>
<DropdownMenuTrigger className="!outline-none focus-visible:bg-theme-item-hover">
<ActionButton as="div" tooltip="Profile">
<UserAvatar className="h-5 p-0" hideName />
</ActionButton>

View File

@ -109,7 +109,7 @@ function EntryContentRender({ entryId }: { entryId: string }) {
<a
href={entry.entries.url || void 0}
target="_blank"
className="-mx-6 block rounded-lg p-6 transition-colors hover:bg-theme-item-hover"
className="-mx-6 block rounded-lg p-6 transition-colors hover:bg-theme-item-hover focus-visible:bg-theme-item-hover focus-visible:!outline-none"
rel="noreferrer"
>
<div className="select-text break-words text-3xl font-bold">

View File

@ -133,6 +133,7 @@ function FeedCategoryImpl({
className={cn(
"flex h-8 items-center [&_.i-mgc-right-cute-fi]:data-[state=open]:rotate-90",
)}
tabIndex={-1}
>
<i className="i-mgc-right-cute-fi mr-2 transition-transform" />
</CollapsibleTrigger>

View File

@ -149,6 +149,7 @@ export function FeedColumn() {
active === index && item.className,
"flex items-center text-xl",
"hover:!bg-theme-vibrancyBg",
"focus-visible:!outline-none",
)}
onClick={(e) => {
setActive(index)