Skip to content

Commit

Permalink
fix: update Spinner styles to work around styling bug (microsoft#31913)
Browse files Browse the repository at this point in the history
Co-authored-by: KHMakoto <Humberto.Morimoto@microsoft.com>
  • Loading branch information
spmonahan and khmakoto committed Jul 8, 2024
1 parent fe2ad5b commit 261f427
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix: update Spinner styles to address CSS bug",
"packageName": "@fluentui/react",
"email": "seanmonahan@microsoft.com",
"dependentChangeType": "patch"
}
6 changes: 5 additions & 1 deletion packages/react/src/components/Spinner/Spinner.styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,12 @@ export const getStyles = (props: ISpinnerStyleProps): ISpinnerStyles => {
{
boxSizing: 'border-box',
borderRadius: '50%',
border: '1.5px solid ' + palette.themeLight,
borderWidth: '1.5px',
borderStyle: 'solid',
borderTopColor: palette.themePrimary,
borderRightColor: palette.themeLight,
borderBottomColor: palette.themeLight,
borderLeftColor: palette.themeLight,
animationName: spinAnimation(),
animationDuration: '1.3s',
animationIterationCount: 'infinite',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ exports[`Spinner renders Spinner correctly 1`] = `
animation-iteration-count: infinite;
animation-name: keyframes 0%{transform:rotate(0deg);}100%{transform:rotate(360deg);};
animation-timing-function: cubic-bezier(.53,.21,.29,.67);
border-bottom-color: #c7e0f4;
border-left-color: #c7e0f4;
border-radius: 50%;
border-right-color: #c7e0f4;
border-style: solid;
border-top-color: #0078d4;
border: 1.5px solid #c7e0f4;
border-width: 1.5px;
box-sizing: border-box;
height: 20px;
width: 20px;
Expand Down

0 comments on commit 261f427

Please sign in to comment.