@workday/canvas-kit-docs 7.0.0-alpha.104-next.29 → 7.0.0-alpha.106-next.2
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.
package/dist/mdx/TESTING.mdx
CHANGED
|
@@ -162,7 +162,7 @@ different, but this will prevent snapshot tests that don't have any changes from
|
|
|
162
162
|
|
|
163
163
|
## Functional tests
|
|
164
164
|
|
|
165
|
-
Canvas Kit uses [Cypress]
|
|
165
|
+
Canvas Kit uses [Cypress](https://cypress.io) for browser-based behavior testing (additional info:
|
|
166
166
|
[Why Cypress?](https://github.com/Workday/canvas-kit/tree/master/cypress/WHY_CYPRESS.md)).
|
|
167
167
|
Functional tests ensure the code meets functional specifications from a user's perspective. All
|
|
168
168
|
functional tests are written against a Storybook Story. Specifications can come from many different
|
|
@@ -99,7 +99,7 @@ hatches for when the default behavior becomes forced. Should you find none of th
|
|
|
99
99
|
for your use case, we recommend using `Flex` instead of `Stack`, which will provide you with more
|
|
100
100
|
flexibility.
|
|
101
101
|
|
|
102
|
-
|
|
102
|
+
### Valid Children
|
|
103
103
|
|
|
104
104
|
Because `Stack` applies styles to children, it requires its immediate children to be valid child
|
|
105
105
|
elements. For example, text outside of an HTML tag would not render if it was an immediate `Stack`
|
|
@@ -75,9 +75,9 @@ trigger an event to change the active tab.
|
|
|
75
75
|
|
|
76
76
|
### Named Tabs
|
|
77
77
|
|
|
78
|
-
`Tabs.Item` and `Tabs.Panel` both take an optional `
|
|
79
|
-
`onActivate` callback. This example is identical to the Basic Example, but with
|
|
80
|
-
`Tabs.Item` and `Tabs.Panel` subcomponents.
|
|
78
|
+
`Tabs.Item` and `Tabs.Panel` both take an optional `data-id` attribute that is used for the
|
|
79
|
+
`onActivate` callback. This example is identical to the Basic Example, but with tabs named using
|
|
80
|
+
`data-id` for the `Tabs.Item` and `Tabs.Panel` subcomponents.
|
|
81
81
|
|
|
82
82
|
<ExampleCodeBlock code={NamedTabs} />
|
|
83
83
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-docs",
|
|
3
|
-
"version": "7.0.0-alpha.
|
|
3
|
+
"version": "7.0.0-alpha.106-next.2+ab2883e3",
|
|
4
4
|
"description": "Documentation components of Canvas Kit components",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@storybook/csf": "0.0.1",
|
|
44
|
-
"@workday/canvas-kit-react": "^7.0.0-alpha.
|
|
44
|
+
"@workday/canvas-kit-react": "^7.0.0-alpha.106-next.2+ab2883e3"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"fs-extra": "^10.0.0",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"mkdirp": "^1.0.3",
|
|
50
50
|
"typescript": "4.1"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "ab2883e3305013c8a9048ea7b67d4012659c2516"
|
|
53
53
|
}
|