Skip to content

Commit

Permalink
feat: focus visible style update
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Jul 1, 2024
1 parent 9f1d8c0 commit ee458b8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/renderer/src/components/ui/button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/components/user-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/modules/entry-content/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
1 change: 1 addition & 0 deletions src/renderer/src/modules/feed-column/category.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions src/renderer/src/modules/feed-column/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ee458b8

Please sign in to comment.