Skip to content

Commit 01a2f04

Browse files
committed
fix: buttons
1 parent c1eacef commit 01a2f04

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

src/components/Downloads/DownloadLinks.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import Link from 'next/link';
12
import Button from '../Button/Button';
23

34
type DownloadProps = {
@@ -13,8 +14,12 @@ const downloadLinks = ({ stableLink, devLink, aircraft }: DownloadProps) => (
1314
{stableLink && devLink ? (
1415
<>
1516
<span className="flex gap-x-2.5">
16-
<Button label="Stable" />
17-
<Button theme="secondary" label="Development" />
17+
<Link href={stableLink}>
18+
<Button>Stable</Button>
19+
</Link>
20+
<Link href={devLink}>
21+
<Button theme="secondary">Development</Button>
22+
</Link>
1823
</span>
1924
</>
2025
) : (

src/styles/fbw.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
* v1.0 - CoherentGT compatible - made for TailwindCSS v3.0 with @flybywiresim/tailwind-config v(TBD)
44
*/
55

6+
/*
7+
* Website mods
8+
* - Buttons modified to fit light background
9+
*/
10+
611
:root {
712
--color-brand-cyan-main: rgb(0, 224, 254);
813
--color-brand-cyan-dark: rgb(0, 202, 229);
@@ -62,6 +67,8 @@
6267
border-color: $borderColorHoverValue;
6368
@if $textColorHover {
6469
color: $background;
70+
} @else {
71+
color: $borderColorHoverValue;
6572
}
6673
}
6774
}

0 commit comments

Comments
 (0)