Skip to content

Commit

Permalink
Spinner: Fix HC styling for spinner to show spinner color (microsoft#…
Browse files Browse the repository at this point in the history
…14372)

* Spinner: Fix HC styling of spinner componet to show highlight color

* Change files

* update snapshots
  • Loading branch information
tomi-msft committed Aug 6, 2020
1 parent aea3a8b commit d438d07
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 1 deletion.
@@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "Spinner: Fix HC styling of spinner componet to show highlight color",
"packageName": "office-ui-fabric-react",
"email": "ololubek@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-08-05T22:38:43.868Z"
}
@@ -1,5 +1,11 @@
import { ISpinnerStyleProps, ISpinnerStyles, SpinnerSize } from './Spinner.types';
import { hiddenContentStyle, keyframes, HighContrastSelector, getGlobalClassNames } from '../../Styling';
import {
hiddenContentStyle,
keyframes,
HighContrastSelector,
getGlobalClassNames,
getEdgeChromiumNoHighContrastAdjustSelector,
} from '../../Styling';
import { memoizeFunction } from '../../Utilities';

const GlobalClassNames = {
Expand Down Expand Up @@ -61,6 +67,7 @@ export const getStyles = (props: ISpinnerStyleProps): ISpinnerStyles => {
[HighContrastSelector]: {
borderTopColor: 'Highlight',
},
...getEdgeChromiumNoHighContrastAdjustSelector(),
},
},
size === SpinnerSize.xSmall && [
Expand Down
Expand Up @@ -30,6 +30,9 @@ exports[`Spinner renders Spinner correctly 1`] = `
@media screen and (-ms-high-contrast: active){& {
border-top-color: Highlight;
}
@media screen and (forced-colors: active){& {
forced-color-adjust: none;
}
/>
<div
className=
Expand Down
Expand Up @@ -100,6 +100,9 @@ exports[`Component Examples renders Spinner.Basic.Example.tsx correctly 1`] = `
@media screen and (-ms-high-contrast: active){& {
border-top-color: Highlight;
}
@media screen and (forced-colors: active){& {
forced-color-adjust: none;
}
/>
</div>
</div>
Expand Down Expand Up @@ -181,6 +184,9 @@ exports[`Component Examples renders Spinner.Basic.Example.tsx correctly 1`] = `
@media screen and (-ms-high-contrast: active){& {
border-top-color: Highlight;
}
@media screen and (forced-colors: active){& {
forced-color-adjust: none;
}
/>
</div>
</div>
Expand Down Expand Up @@ -262,6 +268,9 @@ exports[`Component Examples renders Spinner.Basic.Example.tsx correctly 1`] = `
@media screen and (-ms-high-contrast: active){& {
border-top-color: Highlight;
}
@media screen and (forced-colors: active){& {
forced-color-adjust: none;
}
/>
</div>
</div>
Expand Down Expand Up @@ -343,6 +352,9 @@ exports[`Component Examples renders Spinner.Basic.Example.tsx correctly 1`] = `
@media screen and (-ms-high-contrast: active){& {
border-top-color: Highlight;
}
@media screen and (forced-colors: active){& {
forced-color-adjust: none;
}
/>
</div>
</div>
Expand Down
Expand Up @@ -80,6 +80,9 @@ exports[`Component Examples renders Spinner.Labeled.Example.tsx correctly 1`] =
@media screen and (-ms-high-contrast: active){& {
border-top-color: Highlight;
}
@media screen and (forced-colors: active){& {
forced-color-adjust: none;
}
/>
<div
className=
Expand Down Expand Up @@ -159,6 +162,9 @@ exports[`Component Examples renders Spinner.Labeled.Example.tsx correctly 1`] =
@media screen and (-ms-high-contrast: active){& {
border-top-color: Highlight;
}
@media screen and (forced-colors: active){& {
forced-color-adjust: none;
}
/>
<div
className=
Expand Down Expand Up @@ -238,6 +244,9 @@ exports[`Component Examples renders Spinner.Labeled.Example.tsx correctly 1`] =
@media screen and (-ms-high-contrast: active){& {
border-top-color: Highlight;
}
@media screen and (forced-colors: active){& {
forced-color-adjust: none;
}
/>
<div
className=
Expand Down Expand Up @@ -317,6 +326,9 @@ exports[`Component Examples renders Spinner.Labeled.Example.tsx correctly 1`] =
@media screen and (-ms-high-contrast: active){& {
border-top-color: Highlight;
}
@media screen and (forced-colors: active){& {
forced-color-adjust: none;
}
/>
<div
className=
Expand Down

0 comments on commit d438d07

Please sign in to comment.