Skip to content

Commit

Permalink
fix redesign class & colors
Browse files Browse the repository at this point in the history
  • Loading branch information
kesiah committed Aug 10, 2023
1 parent 32ce730 commit f3acae5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ allLinks.forEach((link) => {
});

/* REDESING CLASS CHECK */
if (document.querySelector('main').classList.contains('redesign-v2')) {
if (getMetadata('style') === 'redesign-v2') {
document.querySelector('html').classList.add('redesign-v2');
document.querySelector('main').classList.remove('redesign-v2');
}
8 changes: 4 additions & 4 deletions styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ main .section.responsive-title h1 {
.redesign-v2 a.button.primary,
.redesign-v2 button.primary {
background-color: var(--button-primary-red-enabled);
color: var(--c-white);
color: var(--c-primary-white);
}

.redesign-v2 a.button.primary:hover,
Expand All @@ -868,7 +868,7 @@ main .section.responsive-title h1 {
.redesign-v2 a.button.secondary,
.redesign-v2 button.secondary {
background-color: var(--button-secondary-gold-enabled);
color: var(--c-black);
color: var(--c-primary-black);
}

.redesign-v2 a.button.secondary:hover,
Expand All @@ -884,8 +884,8 @@ main .section.responsive-title h1 {
.redesign-v2 a.button.tertiary,
.redesign-v2 button.tertiary {
background-color: var(--button-tertiary-white-enabled);
border-color: var(--c-black);
color: var(--c-black);
border-color: var(--c-primary-black);
color: var(--c-primary-black);
}

.redesign-v2 a.button.tertiary:hover,
Expand Down

0 comments on commit f3acae5

Please sign in to comment.