8000 docs(website): increase 'get started' button contrast (#5313) · joshhunt/typescript-eslint@5bc4d43 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5bc4d43

Browse files
docs(website): increase 'get started' button contrast (typescript-eslint#5313)
* docs(website): [Closes typescript-eslint#5211] increase 'get started' button contrast color * docs(website): fix class name convention * docs(website): add thick outline/shadow Co-authored-by: Josh Goldberg <me@joshuakgoldberg.com>
1 parent 1b6d7e7 commit 5bc4d43

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

packages/website/src/pages/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,10 @@ function Home(): JSX.Element {
127127
<h1 className="hero__title">{siteConfig.title}</h1>
128128
<p className="hero__subtitle">{siteConfig.tagline}</p>
129129
<div className={styles.buttons}>
130-
<Link className="button button--primary" to={useBaseUrl('docs/')}>
130+
<Link
131+
className={clsx('button button--primary', styles.buttonPrimary)}
132+
to={useBaseUrl('docs/')}
133+
>
131134
Get Started
132135
</Link>
133136
<Link

packages/website/src/pages/styles.module.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@
3333
margin: 1rem 1rem;
3434
}
3535

36+
.buttonPrimary {
37+
border: var(--ifm-button-border-width) solid var(--ifm-button-color);
38+
}
39+
40+
.buttonPrimary:hover {
41+
box-shadow: 0 2px 8px var(--ifm-button-color);
42+
}
43+
44+
[data-theme='dark'] .buttonPrimary {
45+
border: var(--ifm-button-border-width) solid var(--ifm-button-color);
46+
}
47+
3648
.lightBackground {
3749
background: var(--ifm-color-emphasis-100);
3850
}

0 commit comments

Comments
 (0)
0