Skip to content

Commit

Permalink
Replace & tophat all non-mixin border/outline ms-high-contrast
Browse files Browse the repository at this point in the history
  • Loading branch information
ginabak committed Feb 3, 2021
1 parent ada7f89 commit 83a14f4
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ $shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
color: var(--p-text);
}

@media (-ms-high-contrast: active) {
border: 1px solid ms-high-contrast-color('text');
}
@include high-contrast-border;
}

.LogoContainer {
Expand Down
4 changes: 1 addition & 3 deletions src/components/Frame/components/Toast/Toast.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ $Backdrop-opacity: 0.88;
padding: spacing();
}

@media (-ms-high-contrast: active) {
border: border-width(thick) solid ms-high-contrast-color('text');
}
@include high-contrast-border(border-width(thick));
}

.Action {
Expand Down
4 changes: 1 addition & 3 deletions src/components/Modal/components/Dialog/Dialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ $large-width: rem(980px);
background: var(--p-surface);
box-shadow: var(--p-modal-shadow);

@media (-ms-high-contrast: active) {
border: 1px solid ms-high-contrast-color('text');
}
@include high-contrast-border;

@include frame-when-nav-hidden {
bottom: 0;
Expand Down
4 changes: 1 addition & 3 deletions src/components/Navigation/Navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ $disabled-fade: 0.6;
border-bottom-right-radius: var(--p-border-radius-base);
}

@media (-ms-high-contrast: active) {
outline: 1px solid ms-high-contrast-color('text');
}
@include high-contrast-outline;

@include focus-ring;

Expand Down
4 changes: 1 addition & 3 deletions src/components/ProgressBar/ProgressBar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
background-color: var(--p-surface-neutral);
border-radius: var(--p-border-radius-base);

@media screen and (-ms-high-contrast: active) {
border: 1px solid ms-high-contrast-color('text');
}
@include high-contrast-border;
}

.sizeSmall {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,6 @@ $stacking-order: (
border-color: var(--p-surface);
box-shadow: 0 0 0 rem(2px) var(--p-focused);
}

@media (-ms-high-contrast: active) {
outline: 1px solid ms-high-contrast-color('text');
}
}

.error & {
Expand Down Expand Up @@ -163,7 +159,6 @@ $stacking-order: (
}
}

///
/// Output value indicator
$range-output-size: rem(32px);
$range-output-translate-x: calc(
Expand Down Expand Up @@ -222,6 +217,7 @@ $range-output-spacing: rem(16px);
transform: translateY(-($range-output-spacing / 2));
}
}
@include high-contrast-outline;
// stylelint-enable selector-max-specificity, selector-max-combinators, selector-max-class
}

Expand Down
4 changes: 1 addition & 3 deletions src/components/Tag/Tag.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ $icon-size: rem(16px);
}
}

@media (-ms-high-contrast: active) {
outline: 1px solid ms-high-contrast-color('text');
}
@include high-contrast-outline;
}

.TagText {
Expand Down
1 change: 1 addition & 0 deletions src/styles/shared/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

@mixin range-track-selectors {
&::-ms-track {
@include high-contrast-outline;
@content;
}

Expand Down

0 comments on commit 83a14f4

Please sign in to comment.