@workday/canvas-kit-docs 6.8.7 → 6.8.10

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.
@@ -2031,10 +2031,6 @@ module.exports = {specifications: [
2031
2031
  "type": "it",
2032
2032
  "name": "should set aria-atomic to true"
2033
2033
  },
2034
- {
2035
- "type": "it",
2036
- "name": "should set aria-relevant to true"
2037
- },
2038
2034
  {
2039
2035
  "type": "it",
2040
2036
  "name": "should describe the current page range and the total page count"
@@ -2448,6 +2444,36 @@ module.exports = {specifications: [
2448
2444
  ]
2449
2445
  }
2450
2446
  ]
2447
+ },
2448
+ {
2449
+ "type": "describe",
2450
+ "name": "given the [Components/Popups/Popup/React, FocusRedirect] example is rendered",
2451
+ "children": [
2452
+ {
2453
+ "type": "describe",
2454
+ "name": "when the \"Delete Item\" button is clicked",
2455
+ "children": [
2456
+ {
2457
+ "type": "it",
2458
+ "name": "should show the popup"
2459
+ },
2460
+ {
2461
+ "type": "describe",
2462
+ "name": "when the \"Delete\" button has focus and the tab key is pressed",
2463
+ "children": [
2464
+ {
2465
+ "type": "it",
2466
+ "name": "should hide the popup"
2467
+ },
2468
+ {
2469
+ "type": "it",
2470
+ "name": "should redirect focus to the \"Next Focusable Button\" button"
2471
+ }
2472
+ ]
2473
+ }
2474
+ ]
2475
+ }
2476
+ ]
2451
2477
  }
2452
2478
  ]
2453
2479
  }
@@ -2031,10 +2031,6 @@ module.exports = {specifications: [
2031
2031
  "type": "it",
2032
2032
  "name": "should set aria-atomic to true"
2033
2033
  },
2034
- {
2035
- "type": "it",
2036
- "name": "should set aria-relevant to true"
2037
- },
2038
2034
  {
2039
2035
  "type": "it",
2040
2036
  "name": "should describe the current page range and the total page count"
@@ -2448,6 +2444,36 @@ module.exports = {specifications: [
2448
2444
  ]
2449
2445
  }
2450
2446
  ]
2447
+ },
2448
+ {
2449
+ "type": "describe",
2450
+ "name": "given the [Components/Popups/Popup/React, FocusRedirect] example is rendered",
2451
+ "children": [
2452
+ {
2453
+ "type": "describe",
2454
+ "name": "when the \"Delete Item\" button is clicked",
2455
+ "children": [
2456
+ {
2457
+ "type": "it",
2458
+ "name": "should show the popup"
2459
+ },
2460
+ {
2461
+ "type": "describe",
2462
+ "name": "when the \"Delete\" button has focus and the tab key is pressed",
2463
+ "children": [
2464
+ {
2465
+ "type": "it",
2466
+ "name": "should hide the popup"
2467
+ },
2468
+ {
2469
+ "type": "it",
2470
+ "name": "should redirect focus to the \"Next Focusable Button\" button"
2471
+ }
2472
+ ]
2473
+ }
2474
+ ]
2475
+ }
2476
+ ]
2451
2477
  }
2452
2478
  ]
2453
2479
  }
@@ -49,7 +49,8 @@ export default () => {
49
49
  <Popup.CloseButton as={DeleteButton} onClick={handleDelete}>
50
50
  Delete
51
51
  </Popup.CloseButton>
52
- <Popup.CloseButton>Cancel</Popup.CloseButton>
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.7",
3
+ "version": "6.8.10",
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.7"
53
+ "@workday/canvas-kit-react": "^6.8.10"
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": "381ab508933240f1b628048d3b2a46deee81f74c"
61
+ "gitHead": "89d05b86db640e12993c444b61ffad91b9eacc63"
62
62
  }