Skip to content

Commit 62eae77

Browse files
committed
Unify focus styles
1 parent d898daa commit 62eae77

File tree

5 files changed

+10
-11
lines changed

5 files changed

+10
-11
lines changed

src/components/footer/conference-footer-box.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function ConferenceFooterBox({
1616
<Anchor
1717
href={href}
1818
className={clsx(
19-
"dark group relative inline-flex flex-col bg-pri-base text-neu-900 after:absolute after:inset-0 hover:after:bg-white/[.025] dark:bg-pri-dark",
19+
"dark gql-focus-visible group relative inline-flex flex-col bg-pri-base text-neu-900 after:absolute after:inset-0 hover:after:bg-white/[.025] dark:bg-pri-dark",
2020
className,
2121
)}
2222
>

src/components/footer/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function Footer({ extraLinks }: { extraLinks: FooterLink[] }) {
5151
<h3 className="font-bold lg:mb-4 3xl:mb-10">
5252
{section.route ? (
5353
<Anchor
54-
className="gql-focus-visible block p-4 underline-offset-4 hover:underline md:px-6 2xl:px-10"
54+
className="gql-focus-visible block p-4 underline-offset-4 hover:underline focus-visible:!-outline-offset-4 md:px-6 2xl:px-10"
5555
href={section.route}
5656
>
5757
{section.title}
@@ -65,7 +65,7 @@ export function Footer({ extraLinks }: { extraLinks: FooterLink[] }) {
6565
<Anchor
6666
key={link.route}
6767
href={link.route}
68-
className="gql-focus-visible block p-4 underline-offset-4 hover:underline md:px-6 2xl:px-10"
68+
className="gql-focus-visible block p-4 underline-offset-4 hover:underline focus-visible:!-outline-offset-4 md:px-6 2xl:px-10"
6969
>
7070
{link.title}
7171
</Anchor>
@@ -81,7 +81,7 @@ export function Footer({ extraLinks }: { extraLinks: FooterLink[] }) {
8181
)}
8282
<SocialIcons
8383
count={4}
84-
className="col-span-full gap-px text-pri-base *:flex *:flex-1 *:items-center *:justify-center *:bg-neu-100 *:dark:bg-neu-0 max-sm:*:aspect-square lg:*:aspect-square [&>a:focus]:text-current [&>a:focus]:ring-transparent [&>a:hover]:bg-neu-0/90 [&>a:hover]:text-current [&_svg]:!h-8"
84+
className="gql-all-anchors-focusable col-span-full gap-px text-pri-base *:flex *:flex-1 *:items-center *:justify-center *:bg-neu-100 *:dark:bg-neu-0 max-sm:*:aspect-square lg:*:aspect-square [&>a:focus]:text-current [&>a:focus]:!-outline-offset-[6px] [&>a:focus]:ring-transparent [&>a:hover]:bg-neu-0/90 [&>a:hover]:text-current [&_svg]:!h-8"
8585
/>
8686
</div>
8787
</div>

src/components/index-page/powered-by-community.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import ArrowDownIcon from "@/app/conf/_design-system/pixelarticons/arrow-down.sv
55
export function PoweredByCommunity() {
66
return (
77
<section className="gql-section lg:pb-16 xl:pb-24">
8-
<div className="gql-container typography-body-lg flex bg-pri-darker text-white max-lg:flex-col">
8+
<div className="gql-container dark typography-body-lg flex bg-pri-darker text-neu-900 max-lg:flex-col">
99
<div className="border-pri-light p-6 max-lg:border-b lg:border-r lg:p-16">
1010
<h2 className="typography-h2 text-balance">
1111
Powered by the community
@@ -20,21 +20,21 @@ export function PoweredByCommunity() {
2020
<div>
2121
<Anchor
2222
href="/community/tools-and-libraries"
23-
className="flex items-center justify-between gap-4 whitespace-pre border-b border-pri-light px-6 py-8 hover:bg-white/10 lg:h-1/3 lg:px-8 lg:pr-12 xl:gap-6"
23+
className="flex items-center justify-between gap-4 whitespace-pre border-b border-pri-light px-6 py-8 hover:bg-white/10 focus-visible:!-outline-offset-8 lg:h-1/3 lg:px-8 lg:pr-12 xl:gap-6"
2424
>
2525
Browse libraries
2626
<ArrowDownIcon className="size-10 -rotate-90 text-pri-light" />
2727
</Anchor>
2828
<Anchor
2929
href="/community/events"
30-
className="flex items-center justify-between gap-4 whitespace-pre border-b border-pri-light px-6 py-8 hover:bg-white/10 lg:h-1/3 lg:px-8 lg:pr-12 xl:gap-6"
30+
className="flex items-center justify-between gap-4 whitespace-pre border-b border-pri-light px-6 py-8 hover:bg-white/10 focus-visible:!-outline-offset-8 lg:h-1/3 lg:px-8 lg:pr-12 xl:gap-6"
3131
>
3232
Explore events & meetups
3333
<ArrowDownIcon className="size-10 -rotate-90 text-pri-light" />
3434
</Anchor>
3535
<Anchor
3636
href="/community/foundation"
37-
className="flex items-center justify-between gap-4 whitespace-pre px-6 py-8 hover:bg-white/10 lg:h-1/3 lg:px-8 lg:pr-12 xl:gap-6"
37+
className="flex items-center justify-between gap-4 whitespace-pre px-6 py-8 hover:bg-white/10 focus-visible:!-outline-offset-8 lg:h-1/3 lg:px-8 lg:pr-12 xl:gap-6"
3838
>
3939
Learn about GraphQL Foundation
4040
<ArrowDownIcon className="size-10 -rotate-90 text-pri-light" />

src/components/index-page/quotes-from-the-industry.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export function QuotesFromTheIndustry() {
6666
</div>
6767
<TestimonialsList
6868
testimonials={testimonials}
69-
className="lg:!mt-0 lg:*:px-16"
69+
className="gql-focus-visible focus-visible:!-outline-offset-4 lg:!mt-0 lg:*:px-16"
7070
/>
7171
</div>
7272
)

src/components/index-page/trusted-by/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ const logos: LogoListItem[] = [
3232
/>
3333
),
3434
},
35-
3635
// todo: Netflix?
3736
// {
3837
// href: "https://netflix.com",
@@ -125,7 +124,7 @@ export function TrustedBy() {
125124
href={href}
126125
target="_blank"
127126
rel="noreferrer"
128-
className="group relative flex shrink-0 items-center justify-center bg-neu-0 p-10 *:z-[1] before:absolute before:inset-2 hover:before:bg-neu-100/50 dark:hover:before:bg-[#202219]"
127+
className="group relative flex shrink-0 items-center justify-center bg-neu-0 p-10 *:z-[1] before:absolute before:inset-2 hover:before:bg-neu-100/50 focus-visible:z-[1] dark:hover:before:bg-[#202219]"
129128
>
130129
<Component />
131130
</a>

0 commit comments

Comments
 (0)