-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Spinner): Convert Spinner to CSS module behind feature flag (#5188)
* Convert spinner component to CSS modules Co-authored-by: Hussam Ghazzi <hussam-i-am@github.com> Co-authored-by: Josh Black <joshblack@github.com> Co-authored-by: Jon Rohan <yes@jonrohan.codes> * add changeset * update snapshots * patch -> minor --------- Co-authored-by: Hussam Ghazzi <hussam-i-am@github.com> Co-authored-by: Josh Black <joshblack@github.com> Co-authored-by: Jon Rohan <yes@jonrohan.codes>
- Loading branch information
1 parent
461ae57
commit 573ae51
Showing
7 changed files
with
625 additions
and
754 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@primer/react': minor | ||
--- | ||
|
||
Migrated `Spinner` component to use support CSS modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import React from 'react' | ||
import type {Meta} from '@storybook/react' | ||
import Spinner from './Spinner' | ||
|
||
export default { | ||
title: 'Components/Spinner/Dev', | ||
component: Spinner, | ||
} as Meta<typeof Spinner> | ||
|
||
export const Default = () => <Spinner sx={{border: '1px solid red'}} /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.Box { | ||
display: inline-flex; | ||
} | ||
|
||
@keyframes rotate-keyframes { | ||
100% { | ||
transform: rotate(360deg); | ||
} | ||
} | ||
|
||
.SpinnerAnimation { | ||
animation: rotate-keyframes 1s linear infinite; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.