-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Merge master into prerelease/minor [skip release]
- Loading branch information
Showing
8 changed files
with
131 additions
and
51 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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Contributing to Canvas | ||
|
||
You may read our contribution guidelines | ||
[here](https://workday.github.io/canvas-kit/?path=/docs/guides-contributing--page). | ||
[here](https://workday.github.io/canvas-kit/?path=/docs/guides-contributing--docs). |
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
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
19 changes: 19 additions & 0 deletions
19
modules/react/loading-dots/stories/examples/CustomColorAndAnimation.tsx
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,19 @@ | ||
import React from 'react'; | ||
import {LoadingDots} from '@workday/canvas-kit-react/loading-dots'; | ||
import {system} from '@workday/canvas-tokens-web'; | ||
import {createStyles} from '@workday/canvas-kit-styling'; | ||
|
||
const styleOverrides = { | ||
parentContainer: createStyles({ | ||
display: 'flex', | ||
gap: system.space.x4, | ||
}), | ||
}; | ||
|
||
export const CustomColorAndAnimation = () => { | ||
return ( | ||
<div className={styleOverrides.parentContainer}> | ||
<LoadingDots loadingDotColor={system.color.fg.primary.default} animationDurationMs="60ms" /> | ||
</div> | ||
); | ||
}; |
32 changes: 32 additions & 0 deletions
32
modules/react/loading-dots/stories/examples/CustomShape.tsx
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,32 @@ | ||
import React from 'react'; | ||
import {LoadingDots, loadingDotsStencil} from '@workday/canvas-kit-react/loading-dots'; | ||
import {system} from '@workday/canvas-tokens-web'; | ||
import {createStyles, createStencil} from '@workday/canvas-kit-styling'; | ||
|
||
const styleOverrides = { | ||
parentContainer: createStyles({ | ||
display: 'flex', | ||
gap: system.space.x4, | ||
}), | ||
}; | ||
|
||
const loadingStencil = createStencil({ | ||
base: { | ||
borderRadius: system.shape.round, | ||
backgroundColor: system.color.bg.overlay, | ||
height: 80, | ||
width: 80, | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
display: 'flex', | ||
[loadingDotsStencil.vars.loadingDotColor]: system.color.icon.inverse, | ||
}, | ||
}); | ||
|
||
export const CustomShape = () => { | ||
return ( | ||
<div className={styleOverrides.parentContainer}> | ||
<LoadingDots cs={loadingStencil()} /> | ||
</div> | ||
); | ||
}; |