@workday/canvas-kit-docs 6.8.5 → 6.8.8
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.
|
@@ -2448,6 +2448,36 @@ module.exports = {specifications: [
|
|
|
2448
2448
|
]
|
|
2449
2449
|
}
|
|
2450
2450
|
]
|
|
2451
|
+
},
|
|
2452
|
+
{
|
|
2453
|
+
"type": "describe",
|
|
2454
|
+
"name": "given the [Components/Popups/Popup/React, FocusRedirect] example is rendered",
|
|
2455
|
+
"children": [
|
|
2456
|
+
{
|
|
2457
|
+
"type": "describe",
|
|
2458
|
+
"name": "when the \"Delete Item\" button is clicked",
|
|
2459
|
+
"children": [
|
|
2460
|
+
{
|
|
2461
|
+
"type": "it",
|
|
2462
|
+
"name": "should show the popup"
|
|
2463
|
+
},
|
|
2464
|
+
{
|
|
2465
|
+
"type": "describe",
|
|
2466
|
+
"name": "when the \"Delete\" button has focus and the tab key is pressed",
|
|
2467
|
+
"children": [
|
|
2468
|
+
{
|
|
2469
|
+
"type": "it",
|
|
2470
|
+
"name": "should hide the popup"
|
|
2471
|
+
},
|
|
2472
|
+
{
|
|
2473
|
+
"type": "it",
|
|
2474
|
+
"name": "should redirect focus to the \"Next Focusable Button\" button"
|
|
2475
|
+
}
|
|
2476
|
+
]
|
|
2477
|
+
}
|
|
2478
|
+
]
|
|
2479
|
+
}
|
|
2480
|
+
]
|
|
2451
2481
|
}
|
|
2452
2482
|
]
|
|
2453
2483
|
}
|
package/dist/es6/lib/specs.js
CHANGED
|
@@ -2448,6 +2448,36 @@ module.exports = {specifications: [
|
|
|
2448
2448
|
]
|
|
2449
2449
|
}
|
|
2450
2450
|
]
|
|
2451
|
+
},
|
|
2452
|
+
{
|
|
2453
|
+
"type": "describe",
|
|
2454
|
+
"name": "given the [Components/Popups/Popup/React, FocusRedirect] example is rendered",
|
|
2455
|
+
"children": [
|
|
2456
|
+
{
|
|
2457
|
+
"type": "describe",
|
|
2458
|
+
"name": "when the \"Delete Item\" button is clicked",
|
|
2459
|
+
"children": [
|
|
2460
|
+
{
|
|
2461
|
+
"type": "it",
|
|
2462
|
+
"name": "should show the popup"
|
|
2463
|
+
},
|
|
2464
|
+
{
|
|
2465
|
+
"type": "describe",
|
|
2466
|
+
"name": "when the \"Delete\" button has focus and the tab key is pressed",
|
|
2467
|
+
"children": [
|
|
2468
|
+
{
|
|
2469
|
+
"type": "it",
|
|
2470
|
+
"name": "should hide the popup"
|
|
2471
|
+
},
|
|
2472
|
+
{
|
|
2473
|
+
"type": "it",
|
|
2474
|
+
"name": "should redirect focus to the \"Next Focusable Button\" button"
|
|
2475
|
+
}
|
|
2476
|
+
]
|
|
2477
|
+
}
|
|
2478
|
+
]
|
|
2479
|
+
}
|
|
2480
|
+
]
|
|
2451
2481
|
}
|
|
2452
2482
|
]
|
|
2453
2483
|
}
|
|
@@ -49,7 +49,8 @@ export default () => {
|
|
|
49
49
|
<Popup.CloseButton as={DeleteButton} onClick={handleDelete}>
|
|
50
50
|
Delete
|
|
51
51
|
</Popup.CloseButton>
|
|
52
|
-
|
|
52
|
+
{/* Disabled elements should not be focusable and focus should move to the next focusable element */}
|
|
53
|
+
<Popup.CloseButton disabled>Cancel</Popup.CloseButton>
|
|
53
54
|
</HStack>
|
|
54
55
|
</Popup.Card>
|
|
55
56
|
</Popup.Popper>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-docs",
|
|
3
|
-
"version": "6.8.
|
|
3
|
+
"version": "6.8.8",
|
|
4
4
|
"description": "Documentation components of Canvas Kit components",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@storybook/csf": "0.0.1",
|
|
53
|
-
"@workday/canvas-kit-react": "^6.8.
|
|
53
|
+
"@workday/canvas-kit-react": "^6.8.8"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"fs-extra": "^10.0.0",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"mkdirp": "^1.0.3",
|
|
59
59
|
"typescript": "^3.8.3"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "9bce0569b98c9a3644899e72e85eb636e1c02c0b"
|
|
62
62
|
}
|