@workday/canvas-kit-docs 11.0.10 → 11.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -41,9 +41,24 @@ const myCustomStyles = createStyles({
|
|
|
41
41
|
textTransform: 'uppercase',
|
|
42
42
|
});
|
|
43
43
|
|
|
44
|
+
const customColors = {
|
|
45
|
+
default: {
|
|
46
|
+
background: system.color.static.green.soft,
|
|
47
|
+
icon: system.color.static.green.strong,
|
|
48
|
+
label: system.color.static.green.strong,
|
|
49
|
+
},
|
|
50
|
+
hover: {
|
|
51
|
+
background: system.color.static.green.default,
|
|
52
|
+
icon: system.color.static.green.strong,
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
|
|
44
56
|
export default () => (
|
|
45
57
|
<Grid cs={{gap: px2rem(4), gridTemplateColumns: 'repeat(3, 1fr)', alignItems: 'center'}}>
|
|
46
58
|
<MyCustomButton icon={plusIcon}>Styling Override Via Stencil Variables</MyCustomButton>
|
|
47
59
|
<PrimaryButton cs={myCustomStyles}>Style Override Via Create Styles</PrimaryButton>
|
|
60
|
+
<PrimaryButton icon={plusIcon} colors={customColors}>
|
|
61
|
+
Styling Override Via Colors Prop
|
|
62
|
+
</PrimaryButton>
|
|
48
63
|
</Grid>
|
|
49
64
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-docs",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.12",
|
|
4
4
|
"description": "Documentation components of Canvas Kit components",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@emotion/styled": "^11.6.0",
|
|
46
46
|
"@storybook/csf": "0.0.1",
|
|
47
|
-
"@workday/canvas-kit-labs-react": "^11.0.
|
|
48
|
-
"@workday/canvas-kit-preview-react": "^11.0.
|
|
49
|
-
"@workday/canvas-kit-react": "^11.0.
|
|
50
|
-
"@workday/canvas-kit-styling": "^11.0.
|
|
47
|
+
"@workday/canvas-kit-labs-react": "^11.0.12",
|
|
48
|
+
"@workday/canvas-kit-preview-react": "^11.0.12",
|
|
49
|
+
"@workday/canvas-kit-react": "^11.0.12",
|
|
50
|
+
"@workday/canvas-kit-styling": "^11.0.12",
|
|
51
51
|
"@workday/canvas-system-icons-web": "^3.0.0",
|
|
52
52
|
"@workday/canvas-tokens-web": "^2.0.0",
|
|
53
53
|
"markdown-to-jsx": "^6.10.3",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"mkdirp": "^1.0.3",
|
|
60
60
|
"typescript": "4.2"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "442dc6bb54412fe61deba996cb6e686cc4090777"
|
|
63
63
|
}
|