@workday/canvas-kit-react 6.0.1 → 6.0.5

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.
@@ -3,7 +3,7 @@
3
3
  * `useInitialFocus`. This should be used with `useFocusRedirect` or `useFocusTrap` for a complete
4
4
  * focus management solution.
5
5
  *
6
- * This should ble used on popup elements that use `useInitialFocus`.
6
+ * This should be used on popup elements that use `useInitialFocus`.
7
7
  */
8
8
  export declare const useReturnFocus: (model: import("../../../common").Model<import("./usePopupModel").PopupState, import("./usePopupModel").PopupEvents>, elemProps?: {}) => {};
9
9
  //# sourceMappingURL=useReturnFocus.d.ts.map
@@ -10,7 +10,7 @@ var common_1 = require("@workday/canvas-kit-react/common");
10
10
  * `useInitialFocus`. This should be used with `useFocusRedirect` or `useFocusTrap` for a complete
11
11
  * focus management solution.
12
12
  *
13
- * This should ble used on popup elements that use `useInitialFocus`.
13
+ * This should be used on popup elements that use `useInitialFocus`.
14
14
  */
15
15
  exports.useReturnFocus = function (model, elemProps) {
16
16
  if (elemProps === void 0) { elemProps = {}; }
@@ -29,7 +29,7 @@ exports.useOverflowTarget = common_1.createHook(function (model, ref) {
29
29
  return {
30
30
  ref: elementRef,
31
31
  'aria-hidden': isHidden,
32
- tabIndex: -1,
32
+ tabIndex: isHidden ? -1 : 0,
33
33
  style: isHidden ? hiddenStyle : {},
34
34
  };
35
35
  });
@@ -3,7 +3,7 @@
3
3
  * `useInitialFocus`. This should be used with `useFocusRedirect` or `useFocusTrap` for a complete
4
4
  * focus management solution.
5
5
  *
6
- * This should ble used on popup elements that use `useInitialFocus`.
6
+ * This should be used on popup elements that use `useInitialFocus`.
7
7
  */
8
8
  export declare const useReturnFocus: (model: import("../../../common").Model<import("./usePopupModel").PopupState, import("./usePopupModel").PopupEvents>, elemProps?: {}) => {};
9
9
  //# sourceMappingURL=useReturnFocus.d.ts.map
@@ -5,7 +5,7 @@ import { changeFocus } from '@workday/canvas-kit-react/common';
5
5
  * `useInitialFocus`. This should be used with `useFocusRedirect` or `useFocusTrap` for a complete
6
6
  * focus management solution.
7
7
  *
8
- * This should ble used on popup elements that use `useInitialFocus`.
8
+ * This should be used on popup elements that use `useInitialFocus`.
9
9
  */
10
10
  export var useReturnFocus = function (model, elemProps) {
11
11
  if (elemProps === void 0) { elemProps = {}; }
@@ -24,7 +24,7 @@ export var useOverflowTarget = createHook(function (model, ref) {
24
24
  return {
25
25
  ref: elementRef,
26
26
  'aria-hidden': isHidden,
27
- tabIndex: -1,
27
+ tabIndex: isHidden ? -1 : 0,
28
28
  style: isHidden ? hiddenStyle : {},
29
29
  };
30
30
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-react",
3
- "version": "6.0.1",
3
+ "version": "6.0.5",
4
4
  "description": "The parent module that contains all Workday Canvas Kit React components",
5
5
  "author": "Workday, Inc. (https://www.workday.com)",
6
6
  "license": "Apache-2.0",
@@ -56,9 +56,9 @@
56
56
  "@emotion/styled": "^10.0.27",
57
57
  "@popperjs/core": "^2.5.4",
58
58
  "@workday/canvas-colors-web": "^2.0.0",
59
- "@workday/canvas-kit-labs-react": "^6.0.1",
60
- "@workday/canvas-kit-popup-stack": "^6.0.1",
61
- "@workday/canvas-kit-preview-react": "^6.0.1",
59
+ "@workday/canvas-kit-labs-react": "^6.0.5",
60
+ "@workday/canvas-kit-popup-stack": "^6.0.5",
61
+ "@workday/canvas-kit-preview-react": "^6.0.5",
62
62
  "@workday/canvas-system-icons-web": "1.0.41",
63
63
  "@workday/design-assets-types": "^0.2.4",
64
64
  "chroma-js": "^2.1.0",
@@ -76,5 +76,5 @@
76
76
  "@workday/canvas-accent-icons-web": "^1.0.0",
77
77
  "@workday/canvas-applet-icons-web": "^0.17.50"
78
78
  },
79
- "gitHead": "15fcb59581ed0dd61d7b1154b6c39bc7f165b96d"
79
+ "gitHead": "57439ccf19ad8753d7260730a1c83589b07c22a2"
80
80
  }
@@ -8,7 +8,7 @@ import {changeFocus} from '@workday/canvas-kit-react/common';
8
8
  * `useInitialFocus`. This should be used with `useFocusRedirect` or `useFocusTrap` for a complete
9
9
  * focus management solution.
10
10
  *
11
- * This should ble used on popup elements that use `useInitialFocus`.
11
+ * This should be used on popup elements that use `useInitialFocus`.
12
12
  */
13
13
  export const useReturnFocus = (model: PopupModel, elemProps = {}) => {
14
14
  const visible = model.state.visibility !== 'hidden';
@@ -35,7 +35,7 @@ export const useOverflowTarget = createHook(
35
35
  return {
36
36
  ref: elementRef,
37
37
  'aria-hidden': isHidden,
38
- tabIndex: -1,
38
+ tabIndex: isHidden ? -1 : 0,
39
39
  style: isHidden ? hiddenStyle : {},
40
40
  };
41
41
  }
@@ -3,7 +3,7 @@
3
3
  * `useInitialFocus`. This should be used with `useFocusRedirect` or `useFocusTrap` for a complete
4
4
  * focus management solution.
5
5
  *
6
- * This should ble used on popup elements that use `useInitialFocus`.
6
+ * This should be used on popup elements that use `useInitialFocus`.
7
7
  */
8
8
  export declare const useReturnFocus: (model: import("../../../common").Model<import("./usePopupModel").PopupState, import("./usePopupModel").PopupEvents>, elemProps?: {}) => {};
9
9
  //# sourceMappingURL=useReturnFocus.d.ts.map
@@ -3,7 +3,7 @@
3
3
  * `useInitialFocus`. This should be used with `useFocusRedirect` or `useFocusTrap` for a complete
4
4
  * focus management solution.
5
5
  *
6
- * This should ble used on popup elements that use `useInitialFocus`.
6
+ * This should be used on popup elements that use `useInitialFocus`.
7
7
  */
8
8
  export declare const useReturnFocus: (model: import("../../../common").Model<import("./usePopupModel").PopupState, import("./usePopupModel").PopupEvents>, elemProps?: {}) => {};
9
9
  //# sourceMappingURL=useReturnFocus.d.ts.map