Skip to content

Commit c7a762f

Browse files
authored
focus and a11y tweaks, fix tooltip on Firefox (#54)
1 parent bc62faa commit c7a762f

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

website/app/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function Home() {
1111
Results of automated GitHub Actions workflows testing React Native
1212
ecosystem libraries against nightly builds:
1313
</h2>
14-
<Link href="#android" className="w-fit inline-flex">
14+
<Link href="#android" className="w-fit inline-flex rounded-lg pr-2">
1515
<h3
1616
id="android"
1717
className="text-lg font-semibold inline-flex items-center gap-3 transition-colors scroll-m-20 hover:text-secondary">
@@ -20,7 +20,7 @@ export default function Home() {
2020
</h3>
2121
</Link>
2222
<Table platform="android" />
23-
<Link href="#ios" className="w-fit inline-flex">
23+
<Link href="#ios" className="w-fit inline-flex rounded-lg pr-2">
2424
<h3
2525
id="ios"
2626
className="text-lg font-semibold inline-flex items-center gap-3 transition-colors scroll-m-20 hover:text-secondary">

website/components/EntryNotes.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ export function EntryNotes({ notes }: Props) {
1111

1212
return (
1313
<Tooltip content={notes}>
14-
<InfoIcon className="size-3.5 text-secondary" />
14+
<button type="button" aria-label="Notes">
15+
<InfoIcon className="size-3.5 text-secondary" />
16+
</button>
1517
</Tooltip>
1618
);
1719
}

website/components/Tooltip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default function Tooltip({
2929
<Trigger asChild>{children}</Trigger>
3030
<Portal>
3131
<Content
32-
className="bg-black px-2.5 py-1 rounded-md text-xs text-white max-w-[220px] text-center"
32+
className="bg-black px-2.5 py-1 rounded-md text-xs text-white max-w-[220px] text-center z-20"
3333
sideOffset={sideOffset}
3434
side={side}>
3535
{content}

website/styles/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,5 @@ body {
7070
}
7171

7272
* {
73-
@apply focus-visible:outline-brand/50 focus-visible:outline-offset-4;
73+
@apply focus-visible:outline-brand/75 focus-visible:outline-offset-[3px];
7474
}

0 commit comments

Comments
 (0)