Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change button-link bg color for high contrast #160

Merged
merged 2 commits into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions components/button-link.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ class ButtonLink extends HTMLElement {
}

a.primary {
color: white;
color: var(--bg-100);
font-weight: 500;
background-color: var(--primary);
background-color: var(--bg-400);
}

a.primary:focus {
Expand All @@ -88,8 +88,8 @@ class ButtonLink extends HTMLElement {
}

a.primary:active {
background-color: #160b46;
color: white;
background-color: var(--text-900);
color: var(--bg-100);
}

a.ghost {
Expand Down Expand Up @@ -118,19 +118,19 @@ class ButtonLink extends HTMLElement {
}

a.small.ghost:active {
color: #846de9;
color: var(--primary);
}

a.big.ghost {
padding: auto;
color: black;
color: var(--text-900);
font-weight: normal;
border-radius: 10px;
background: white;
background: var(--bg-100);
border: 3px solid transparent;
background-clip: padding-box, border-box;
background-origin: padding-box, border-box;
background-image: linear-gradient(white, white),
background-image: linear-gradient(var(--bg-100), var(--bg-100)),
linear-gradient(135deg, var(--secondary), var(--primary));

@media only screen and (min-width: 768px) {
Expand Down
2 changes: 1 addition & 1 deletion components/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Footer extends HTMLElement {
:host {
display: block;
height: 400px;
color: white;
color: var(--bg-100);
background-color: var(--text-900);
padding: 80px 27px;
Expand Down
1 change: 1 addition & 0 deletions global-styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
--bg-100: #fdfdff;
--bg-200: #fbfaff;
--bg-300: #eee8fe;
--bg-400: #5333e1;
--text-900: #160b46;
--font-weight-light: 300;
--font-weight-regular: 400;
Expand Down