@instructure/ui-tray 10.24.3-snapshot-4 → 10.24.3-snapshot-7
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/CHANGELOG.md +1 -1
- package/package.json +16 -16
- package/src/Tray/README.md +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [10.24.3-snapshot-
|
|
6
|
+
## [10.24.3-snapshot-7](https://github.com/instructure/instructure-ui/compare/v10.24.2...v10.24.3-snapshot-7) (2025-08-19)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-tray
|
|
9
9
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-tray",
|
|
3
|
-
"version": "10.24.3-snapshot-
|
|
3
|
+
"version": "10.24.3-snapshot-7",
|
|
4
4
|
"description": "Tray component for secondary/menu content",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -24,24 +24,24 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/runtime": "^7.27.6",
|
|
27
|
-
"@instructure/console": "10.24.3-snapshot-
|
|
28
|
-
"@instructure/emotion": "10.24.3-snapshot-
|
|
29
|
-
"@instructure/shared-types": "10.24.3-snapshot-
|
|
30
|
-
"@instructure/ui-dialog": "10.24.3-snapshot-
|
|
31
|
-
"@instructure/ui-i18n": "10.24.3-snapshot-
|
|
32
|
-
"@instructure/ui-motion": "10.24.3-snapshot-
|
|
33
|
-
"@instructure/ui-overlays": "10.24.3-snapshot-
|
|
34
|
-
"@instructure/ui-portal": "10.24.3-snapshot-
|
|
35
|
-
"@instructure/ui-position": "10.24.3-snapshot-
|
|
36
|
-
"@instructure/ui-prop-types": "10.24.3-snapshot-
|
|
37
|
-
"@instructure/ui-react-utils": "10.24.3-snapshot-
|
|
38
|
-
"@instructure/ui-testable": "10.24.3-snapshot-
|
|
39
|
-
"@instructure/ui-utils": "10.24.3-snapshot-
|
|
27
|
+
"@instructure/console": "10.24.3-snapshot-7",
|
|
28
|
+
"@instructure/emotion": "10.24.3-snapshot-7",
|
|
29
|
+
"@instructure/shared-types": "10.24.3-snapshot-7",
|
|
30
|
+
"@instructure/ui-dialog": "10.24.3-snapshot-7",
|
|
31
|
+
"@instructure/ui-i18n": "10.24.3-snapshot-7",
|
|
32
|
+
"@instructure/ui-motion": "10.24.3-snapshot-7",
|
|
33
|
+
"@instructure/ui-overlays": "10.24.3-snapshot-7",
|
|
34
|
+
"@instructure/ui-portal": "10.24.3-snapshot-7",
|
|
35
|
+
"@instructure/ui-position": "10.24.3-snapshot-7",
|
|
36
|
+
"@instructure/ui-prop-types": "10.24.3-snapshot-7",
|
|
37
|
+
"@instructure/ui-react-utils": "10.24.3-snapshot-7",
|
|
38
|
+
"@instructure/ui-testable": "10.24.3-snapshot-7",
|
|
39
|
+
"@instructure/ui-utils": "10.24.3-snapshot-7",
|
|
40
40
|
"prop-types": "^15.8.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@instructure/ui-babel-preset": "10.24.3-snapshot-
|
|
44
|
-
"@instructure/ui-themes": "10.24.3-snapshot-
|
|
43
|
+
"@instructure/ui-babel-preset": "10.24.3-snapshot-7",
|
|
44
|
+
"@instructure/ui-themes": "10.24.3-snapshot-7",
|
|
45
45
|
"@testing-library/jest-dom": "^6.6.3",
|
|
46
46
|
"@testing-library/react": "^16.0.1",
|
|
47
47
|
"@testing-library/user-event": "^14.6.1",
|
package/src/Tray/README.md
CHANGED
|
@@ -25,9 +25,6 @@ The Tray is an actionable container that is triggered by click and does not need
|
|
|
25
25
|
renderCloseButton() {
|
|
26
26
|
return (
|
|
27
27
|
<Flex>
|
|
28
|
-
<Flex.Item shouldGrow shouldShrink>
|
|
29
|
-
<Heading>Hello</Heading>
|
|
30
|
-
</Flex.Item>
|
|
31
28
|
<Flex.Item>
|
|
32
29
|
<CloseButton
|
|
33
30
|
placement="end"
|
|
@@ -36,6 +33,9 @@ The Tray is an actionable container that is triggered by click and does not need
|
|
|
36
33
|
onClick={this.hideTray}
|
|
37
34
|
/>
|
|
38
35
|
</Flex.Item>
|
|
36
|
+
<Flex.Item shouldGrow shouldShrink>
|
|
37
|
+
<Heading>Hello</Heading>
|
|
38
|
+
</Flex.Item>
|
|
39
39
|
</Flex>
|
|
40
40
|
)
|
|
41
41
|
}
|
|
@@ -86,9 +86,6 @@ The Tray is an actionable container that is triggered by click and does not need
|
|
|
86
86
|
|
|
87
87
|
const renderCloseButton = () => (
|
|
88
88
|
<Flex>
|
|
89
|
-
<Flex.Item shouldGrow shouldShrink>
|
|
90
|
-
<Heading>Hello</Heading>
|
|
91
|
-
</Flex.Item>
|
|
92
89
|
<Flex.Item>
|
|
93
90
|
<CloseButton
|
|
94
91
|
placement="end"
|
|
@@ -97,6 +94,9 @@ The Tray is an actionable container that is triggered by click and does not need
|
|
|
97
94
|
onClick={hideTray}
|
|
98
95
|
/>
|
|
99
96
|
</Flex.Item>
|
|
97
|
+
<Flex.Item shouldGrow shouldShrink>
|
|
98
|
+
<Heading>Hello</Heading>
|
|
99
|
+
</Flex.Item>
|
|
100
100
|
</Flex>
|
|
101
101
|
)
|
|
102
102
|
|
|
@@ -159,7 +159,7 @@ type: embed
|
|
|
159
159
|
<Figure.Item>Keyboard focus must be set in the tray when it appears; usually on the first interactive element</Figure.Item>
|
|
160
160
|
<Figure.Item>Trays must contain keyboard focus until they’re closed. This is to ensure that keyboard or screen reader users won't mistakenly interact with background content that is meant to be hidden or inaccessible</Figure.Item>
|
|
161
161
|
<Figure.Item>When a user closes a tray, focus must return to a logical place within the page. This is usually the element that triggered opening the tray</Figure.Item>
|
|
162
|
-
<Figure.Item>We recommend that trays begin with a heading (typically H2)
|
|
162
|
+
<Figure.Item>We recommend that trays begin with a heading (typically H2). However, when configuring the component, the button to close the Tray should precede the heading. This ensures screen readers announce the Tray's content in a logical order.</Figure.Item>
|
|
163
163
|
</Figure>
|
|
164
164
|
</Guidelines>
|
|
165
165
|
```
|