Skip to content

Commit

Permalink
VOTE-2334: Accessibility controls border contrast (#842)
Browse files Browse the repository at this point in the history
* VOTE-2334: fix border variables

* VOTE-2334 Adjust border width

---------

Co-authored-by: SamiraMSadat <samira.sadat@gsa.gov>
  • Loading branch information
mlloydbixal and SamiraMSadat authored Jul 17, 2024
1 parent f3b8cb5 commit 9b9bdec
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion web/themes/custom/votegov/src/sass/components/a11y-toolbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@
--theme-options-button--bg: #{$base-white};
--theme-options-button--bg-hover: #{$base-primary-hover};
--theme-options-button--icon: #{$base-dark};
--theme-options-button--border: #{$base-dark};
@include button-unstyled;
@include u-display('block');
@include u-width('full');
@include u-padding(2);
border: 1px solid $base-dark;
border: 2px solid var(--theme-options-button--border);
background-color: var(--theme-options-button--bg);
cursor: pointer;

Expand All @@ -51,6 +52,7 @@
}

@include hover {
--theme-options-button--border: #{$base-white};
background-color: var(--theme-options-button--bg-hover);

@include before {
Expand Down Expand Up @@ -101,21 +103,31 @@

@include at-media-max('tablet') {
--theme-options-button--bg: #{$btn-bg-high-contrast};
--theme-options-button--border: #{$base-white};

@include hover {
--theme-options-button--bg-hover: #{$btn-bg-high-contrast-hover};
--theme-options-button--border: #{$base-white};
}
}
}
}

.vote-theme-options__button--theme {
@include hover {
z-index: 0;
}

@include before {
mask: url("../../img/svg/dark-light.svg") no-repeat center center;
}
}

.vote-theme-options__button--scale {
@include hover {
z-index: 0;
}

@include before {
mask: url("../../img/svg/text-size.svg") no-repeat center center;
}
Expand Down

0 comments on commit 9b9bdec

Please sign in to comment.