@workday/canvas-kit-preview-react 9.1.2 → 9.1.3
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.
|
@@ -63,7 +63,7 @@ export interface DeprecatedMenuState {
|
|
|
63
63
|
*
|
|
64
64
|
* `DeprecatedMenu` renders a styled `<ul role="menu">` element within a {@link Card} and follows
|
|
65
65
|
* the [Active Menu
|
|
66
|
-
* pattern](https://www.w3.org/
|
|
66
|
+
* pattern](https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/examples/menu-button-actions-active-descendant/)
|
|
67
67
|
* using `aria-activedescendant`.
|
|
68
68
|
*
|
|
69
69
|
* Undocumented props are spread to the underlying `<ul>` element.
|
|
@@ -46,7 +46,7 @@ const List = styled_1.default('ul')({
|
|
|
46
46
|
*
|
|
47
47
|
* `DeprecatedMenu` renders a styled `<ul role="menu">` element within a {@link Card} and follows
|
|
48
48
|
* the [Active Menu
|
|
49
|
-
* pattern](https://www.w3.org/
|
|
49
|
+
* pattern](https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/examples/menu-button-actions-active-descendant/)
|
|
50
50
|
* using `aria-activedescendant`.
|
|
51
51
|
*
|
|
52
52
|
* Undocumented props are spread to the underlying `<ul>` element.
|
|
@@ -226,7 +226,7 @@ class DeprecatedMenu extends React.Component {
|
|
|
226
226
|
// We track the active menu item by index so we can avoid setting a bunch of refs
|
|
227
227
|
// for doing things like selecting an item by first character (or really calling .focus() at all)
|
|
228
228
|
// It allows us to use the activedescendant design pattern
|
|
229
|
-
// https://www.w3.org/
|
|
229
|
+
// https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/examples/menu-button-actions-active-descendant/
|
|
230
230
|
this.state = {
|
|
231
231
|
selectedItemIndex: selected,
|
|
232
232
|
};
|
|
@@ -63,7 +63,7 @@ export interface DeprecatedMenuState {
|
|
|
63
63
|
*
|
|
64
64
|
* `DeprecatedMenu` renders a styled `<ul role="menu">` element within a {@link Card} and follows
|
|
65
65
|
* the [Active Menu
|
|
66
|
-
* pattern](https://www.w3.org/
|
|
66
|
+
* pattern](https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/examples/menu-button-actions-active-descendant/)
|
|
67
67
|
* using `aria-activedescendant`.
|
|
68
68
|
*
|
|
69
69
|
* Undocumented props are spread to the underlying `<ul>` element.
|
|
@@ -21,7 +21,7 @@ const List = styled('ul')({
|
|
|
21
21
|
*
|
|
22
22
|
* `DeprecatedMenu` renders a styled `<ul role="menu">` element within a {@link Card} and follows
|
|
23
23
|
* the [Active Menu
|
|
24
|
-
* pattern](https://www.w3.org/
|
|
24
|
+
* pattern](https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/examples/menu-button-actions-active-descendant/)
|
|
25
25
|
* using `aria-activedescendant`.
|
|
26
26
|
*
|
|
27
27
|
* Undocumented props are spread to the underlying `<ul>` element.
|
|
@@ -201,7 +201,7 @@ export class DeprecatedMenu extends React.Component {
|
|
|
201
201
|
// We track the active menu item by index so we can avoid setting a bunch of refs
|
|
202
202
|
// for doing things like selecting an item by first character (or really calling .focus() at all)
|
|
203
203
|
// It allows us to use the activedescendant design pattern
|
|
204
|
-
// https://www.w3.org/
|
|
204
|
+
// https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/examples/menu-button-actions-active-descendant/
|
|
205
205
|
this.state = {
|
|
206
206
|
selectedItemIndex: selected,
|
|
207
207
|
};
|
package/menu/lib/Menu.tsx
CHANGED
|
@@ -85,7 +85,7 @@ const List = styled('ul')({
|
|
|
85
85
|
*
|
|
86
86
|
* `DeprecatedMenu` renders a styled `<ul role="menu">` element within a {@link Card} and follows
|
|
87
87
|
* the [Active Menu
|
|
88
|
-
* pattern](https://www.w3.org/
|
|
88
|
+
* pattern](https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/examples/menu-button-actions-active-descendant/)
|
|
89
89
|
* using `aria-activedescendant`.
|
|
90
90
|
*
|
|
91
91
|
* Undocumented props are spread to the underlying `<ul>` element.
|
|
@@ -108,7 +108,7 @@ export class DeprecatedMenu extends React.Component<DeprecatedMenuProps, Depreca
|
|
|
108
108
|
// We track the active menu item by index so we can avoid setting a bunch of refs
|
|
109
109
|
// for doing things like selecting an item by first character (or really calling .focus() at all)
|
|
110
110
|
// It allows us to use the activedescendant design pattern
|
|
111
|
-
// https://www.w3.org/
|
|
111
|
+
// https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/examples/menu-button-actions-active-descendant/
|
|
112
112
|
this.state = {
|
|
113
113
|
selectedItemIndex: selected,
|
|
114
114
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-preview-react",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.3",
|
|
4
4
|
"description": "Canvas Kit Preview is made up of components that have the full design and a11y review, are part of the DS ecosystem and are approved for use in product. The API's could be subject to change, but not without strong communication and migration strategies.",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@emotion/react": "^11.7.1",
|
|
48
48
|
"@emotion/styled": "^11.6.0",
|
|
49
|
-
"@workday/canvas-kit-react": "^9.1.
|
|
49
|
+
"@workday/canvas-kit-react": "^9.1.3",
|
|
50
50
|
"@workday/canvas-system-icons-web": "^3.0.0",
|
|
51
51
|
"@workday/design-assets-types": "^0.2.8"
|
|
52
52
|
},
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"react-hook-form": "7.36.1",
|
|
57
57
|
"yup": "^0.32.11"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "e05ca047d5cb85ed194a626c92d143e9e0805733"
|
|
60
60
|
}
|