@instructure/ui-alerts 11.7.5 → 11.7.6-snapshot-11
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 +11 -0
- package/es/Alert/v2/index.js +0 -1
- package/lib/Alert/v2/index.js +0 -1
- package/package.json +15 -15
- package/src/Alert/v2/README.md +2 -1
- package/src/Alert/v2/index.tsx +0 -5
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Alert/v1/index.d.ts +3 -3
- package/types/Alert/v1/index.d.ts.map +1 -1
- package/types/Alert/v1/styles.d.ts.map +1 -1
- package/types/Alert/v1/theme.d.ts.map +1 -1
- package/types/Alert/v2/index.d.ts +3 -3
- package/types/Alert/v2/index.d.ts.map +1 -1
- package/types/Alert/v2/styles.d.ts +1 -1
- package/types/Alert/v2/styles.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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
|
+
## [11.7.6-snapshot-11](https://github.com/instructure/instructure-ui/compare/v11.7.5...v11.7.6-snapshot-11) (2026-08-31)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **ui-alerts:** remove live region role warning ([884a1fa](https://github.com/instructure/instructure-ui/commit/884a1faf40befef98716751b39f46f65c906c45c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [11.7.5](https://github.com/instructure/instructure-ui/compare/v11.7.4...v11.7.5) (2026-08-25)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @instructure/ui-alerts
|
package/es/Alert/v2/index.js
CHANGED
|
@@ -120,7 +120,6 @@ let Alert = (_dec = withDeterministicId(), _dec2 = withStyleNew(generateStyle),
|
|
|
120
120
|
return this.isDOMNode(lr) ? lr : null;
|
|
121
121
|
}
|
|
122
122
|
initLiveRegion(liveRegion) {
|
|
123
|
-
error(liveRegion.getAttribute('role') === 'alert', `[Alert] live region must have role='alert' set on page load in order to announce content`);
|
|
124
123
|
if (liveRegion) {
|
|
125
124
|
liveRegion.setAttribute('aria-live', this.props.liveRegionPoliteness);
|
|
126
125
|
// indicates what notifications the user agent will trigger when the
|
package/lib/Alert/v2/index.js
CHANGED
|
@@ -128,7 +128,6 @@ let Alert = exports.Alert = (_dec = (0, _withDeterministicId.withDeterministicId
|
|
|
128
128
|
return this.isDOMNode(lr) ? lr : null;
|
|
129
129
|
}
|
|
130
130
|
initLiveRegion(liveRegion) {
|
|
131
|
-
(0, _console.logError)(liveRegion.getAttribute('role') === 'alert', `[Alert] live region must have role='alert' set on page load in order to announce content`);
|
|
132
131
|
if (liveRegion) {
|
|
133
132
|
liveRegion.setAttribute('aria-live', this.props.liveRegionPoliteness);
|
|
134
133
|
// indicates what notifications the user agent will trigger when the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-alerts",
|
|
3
|
-
"version": "11.7.
|
|
3
|
+
"version": "11.7.6-snapshot-11",
|
|
4
4
|
"description": "An alert component",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -16,26 +16,26 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.29.7",
|
|
18
18
|
"keycode": "^2",
|
|
19
|
-
"@instructure/
|
|
20
|
-
"@instructure/
|
|
21
|
-
"@instructure/
|
|
22
|
-
"@instructure/ui-
|
|
23
|
-
"@instructure/
|
|
24
|
-
"@instructure/ui-icons": "11.7.
|
|
25
|
-
"@instructure/ui-motion": "11.7.
|
|
26
|
-
"@instructure/ui-
|
|
27
|
-
"@instructure/ui-
|
|
28
|
-
"@instructure/ui-
|
|
19
|
+
"@instructure/emotion": "11.7.6-snapshot-11",
|
|
20
|
+
"@instructure/console": "11.7.6-snapshot-11",
|
|
21
|
+
"@instructure/shared-types": "11.7.6-snapshot-11",
|
|
22
|
+
"@instructure/ui-buttons": "11.7.6-snapshot-11",
|
|
23
|
+
"@instructure/ui-a11y-content": "11.7.6-snapshot-11",
|
|
24
|
+
"@instructure/ui-icons": "11.7.6-snapshot-11",
|
|
25
|
+
"@instructure/ui-motion": "11.7.6-snapshot-11",
|
|
26
|
+
"@instructure/ui-react-utils": "11.7.6-snapshot-11",
|
|
27
|
+
"@instructure/ui-view": "11.7.6-snapshot-11",
|
|
28
|
+
"@instructure/ui-themes": "11.7.6-snapshot-11"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@testing-library/jest-dom": "^6.9.1",
|
|
32
32
|
"@testing-library/react": "16.3.2",
|
|
33
33
|
"@testing-library/user-event": "^14.6.1",
|
|
34
34
|
"vitest": "^4.1.9",
|
|
35
|
-
"@instructure/ui-
|
|
36
|
-
"@instructure/ui-
|
|
37
|
-
"@instructure/ui-color-utils": "11.7.
|
|
38
|
-
"@instructure/ui-scripts": "11.7.
|
|
35
|
+
"@instructure/ui-babel-preset": "11.7.6-snapshot-11",
|
|
36
|
+
"@instructure/ui-axe-check": "11.7.6-snapshot-11",
|
|
37
|
+
"@instructure/ui-color-utils": "11.7.6-snapshot-11",
|
|
38
|
+
"@instructure/ui-scripts": "11.7.6-snapshot-11"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"react": ">=18 <=19",
|
package/src/Alert/v2/README.md
CHANGED
|
@@ -231,7 +231,7 @@ type: embed
|
|
|
231
231
|
<Figure.Item>Use the Error alert to notify user of an error</Figure.Item>
|
|
232
232
|
<Figure.Item>Use the Warning alert to notify user of a warning</Figure.Item>
|
|
233
233
|
<Figure.Item>Use the Success alert to notify user of a success event or action</Figure.Item>
|
|
234
|
-
<Figure.Item>Use the
|
|
234
|
+
<Figure.Item>Use the <code>variantScreenReaderLabel</code> prop to indicate the alert variant to screen reader users</Figure.Item>
|
|
235
235
|
</Figure>
|
|
236
236
|
<Figure recommendation="no" title="Don't">
|
|
237
237
|
<Figure.Item>Have alert messaging that is more than two lines long</Figure.Item>
|
|
@@ -250,6 +250,7 @@ type: embed
|
|
|
250
250
|
<Figure.Item>aria-live="polite" alerts will only be announced if the user is not currently doing anything. Polite should be used in most situations involving live regions that present new info to users</Figure.Item>
|
|
251
251
|
<Figure.Item>aria-live="assertive" alerts will be announced to the user as soon as possible, but not necessarily immediately. Assertive should be used if there is information that a user must know about right away, for example, a warning message in a form that does validation on the fly</Figure.Item>
|
|
252
252
|
<Figure.Item>The aria-atomic=BOOLEAN is used to set whether or not the screen reader should always present the live region as a whole, even if only part of the region changes. The possible settings are: false or true. The default setting is false.</Figure.Item>
|
|
253
|
+
<Figure.Item>Do not set the <code>role</code> prop on the <code>liveRegion</code> because <code>liveRegionPoliteness</code> and <code>isLiveRegionAtomic</code> override the set values.</Figure.Item>
|
|
253
254
|
</Figure>
|
|
254
255
|
</Guidelines>
|
|
255
256
|
```
|
package/src/Alert/v2/index.tsx
CHANGED
|
@@ -153,11 +153,6 @@ class Alert extends Component<AlertProps, AlertState> {
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
initLiveRegion(liveRegion: Element) {
|
|
156
|
-
error(
|
|
157
|
-
liveRegion.getAttribute('role') === 'alert',
|
|
158
|
-
`[Alert] live region must have role='alert' set on page load in order to announce content`
|
|
159
|
-
)
|
|
160
|
-
|
|
161
156
|
if (liveRegion) {
|
|
162
157
|
liveRegion.setAttribute('aria-live', this.props.liveRegionPoliteness!)
|
|
163
158
|
// indicates what notifications the user agent will trigger when the
|