Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit e219d04

Browse files
fix: updated link focus
1 parent db6230a commit e219d04

File tree

6 files changed

+15
-5
lines changed

6 files changed

+15
-5
lines changed

src/renderer/components/CookbookTable/CookbookTable.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ export default function CookbookTable({ cookbooks }: CookbookTableProps) {
9999
href={`${getGroupUrl(
100100
cookbook.groups[0].id!
101101
)}/cookbooks`}
102+
_focus={{ boxShadow: 'none' }}
102103
>
103104
{cookbook.groups[0].name}
104105
</Link>

src/renderer/components/SnippetTable/SnippetTable.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ export default function SnippetTable({ recipes }: SnippetTableProps) {
100100
href={`${getGroupUrl(
101101
recipe.groups[0].id!
102102
)}/snippets`}
103+
_focus={{ boxShadow: 'none' }}
103104
>
104105
{recipe.groups[0].name}
105106
</Link>

src/renderer/components/UserLink/UserLink.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ export default function UserLink({ owner = {} }: UserLinkProps) {
1212

1313
if (hasSlug && slug) {
1414
return (
15-
<Link isExternal variant="subtle" href={getUserUrl(slug)}>
15+
<Link
16+
isExternal
17+
variant="subtle"
18+
href={getUserUrl(slug)}
19+
_focus={{ boxShadow: 'none' }}
20+
>
1621
{displayName || 'Anonymous'}
1722
<ExternalLinkIcon ml="space_4" color="neutral.75" />
1823
</Link>

src/renderer/pages/ViewCookbookSnippets.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export default function ViewCookbookSnippets() {
5353
<Link
5454
isExternal
5555
variant="subtle"
56+
_focus={{ boxShadow: 'none' }}
5657
href={getCookbookUrl(cookbook.id)}
5758
>
5859
{cookbook.name}

src/renderer/pages/ViewSnippet.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,12 @@ export default function ViewSnippet() {
4949
<Flex alignItems="center" gridGap="space_8">
5050
<Logo value={recipe.language} fullSize={false} logoSize={24} />
5151
<Text size="sm" fontWeight="bold" noOfLines={1}>
52-
<Link isExternal variant="subtle" href={getSnippetUrl(recipe.id)}>
52+
<Link
53+
isExternal
54+
variant="subtle"
55+
href={getSnippetUrl(recipe.id)}
56+
_focus={{ boxShadow: 'none' }}
57+
>
5358
{recipe.name}
5459
</Link>
5560
</Text>

src/renderer/styles/app.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
a:focus {
2-
box-shadow: none !important;
3-
}

0 commit comments

Comments
 (0)