@instructure/ui-number-input 10.6.2-snapshot-9 → 10.7.0
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
CHANGED
|
@@ -3,7 +3,12 @@
|
|
|
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
|
-
|
|
6
|
+
# [10.7.0](https://github.com/instructure/instructure-ui/compare/v10.6.1...v10.7.0) (2024-12-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **many:** hide required asterisks from screenreaders ([78aec71](https://github.com/instructure/instructure-ui/commit/78aec71d1056df3a43ffd226d993c451a8fe9c1d))
|
|
7
12
|
|
|
8
13
|
|
|
9
14
|
### Features
|
package/es/NumberInput/index.js
CHANGED
|
@@ -183,8 +183,9 @@ let NumberInput = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle
|
|
|
183
183
|
const interaction = this.interaction;
|
|
184
184
|
const rawLabel = callRenderProp(renderLabel);
|
|
185
185
|
const label = hasVisibleChildren(rawLabel) ? jsx(React.Fragment, null, rawLabel, isRequired && jsx("span", {
|
|
186
|
-
css: this.invalid ? styles === null || styles === void 0 ? void 0 : styles.requiredInvalid : {}
|
|
187
|
-
|
|
186
|
+
css: this.invalid ? styles === null || styles === void 0 ? void 0 : styles.requiredInvalid : {},
|
|
187
|
+
"aria-hidden": true
|
|
188
|
+
}, ' ', "*")) : rawLabel;
|
|
188
189
|
return jsx(FormField, Object.assign({}, pickProps(this.props, FormField.allowedProps), {
|
|
189
190
|
label: label,
|
|
190
191
|
inline: display === 'inline-block',
|
package/lib/NumberInput/index.js
CHANGED
|
@@ -195,8 +195,9 @@ let NumberInput = exports.NumberInput = (_dec = (0, _withDeterministicId.withDet
|
|
|
195
195
|
const interaction = this.interaction;
|
|
196
196
|
const rawLabel = (0, _callRenderProp.callRenderProp)(renderLabel);
|
|
197
197
|
const label = (0, _hasVisibleChildren.hasVisibleChildren)(rawLabel) ? (0, _emotion.jsx)(_react.default.Fragment, null, rawLabel, isRequired && (0, _emotion.jsx)("span", {
|
|
198
|
-
css: this.invalid ? styles === null || styles === void 0 ? void 0 : styles.requiredInvalid : {}
|
|
199
|
-
|
|
198
|
+
css: this.invalid ? styles === null || styles === void 0 ? void 0 : styles.requiredInvalid : {},
|
|
199
|
+
"aria-hidden": true
|
|
200
|
+
}, ' ', "*")) : rawLabel;
|
|
200
201
|
return (0, _emotion.jsx)(_FormField.FormField, Object.assign({}, (0, _pickProps.pickProps)(this.props, _FormField.FormField.allowedProps), {
|
|
201
202
|
label: label,
|
|
202
203
|
inline: display === 'inline-block',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-number-input",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.7.0",
|
|
4
4
|
"description": "A UI component library made by Instructure Inc.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"homepage": "https://instructure.github.io/instructure-ui/",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@instructure/ui-axe-check": "10.
|
|
27
|
-
"@instructure/ui-babel-preset": "10.
|
|
28
|
-
"@instructure/ui-scripts": "10.
|
|
29
|
-
"@instructure/ui-test-utils": "10.
|
|
30
|
-
"@instructure/ui-themes": "10.
|
|
26
|
+
"@instructure/ui-axe-check": "10.7.0",
|
|
27
|
+
"@instructure/ui-babel-preset": "10.7.0",
|
|
28
|
+
"@instructure/ui-scripts": "10.7.0",
|
|
29
|
+
"@instructure/ui-test-utils": "10.7.0",
|
|
30
|
+
"@instructure/ui-themes": "10.7.0",
|
|
31
31
|
"@testing-library/jest-dom": "^6.4.6",
|
|
32
32
|
"@testing-library/react": "^16.0.1",
|
|
33
33
|
"@testing-library/user-event": "^14.5.2",
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@babel/runtime": "^7.25.6",
|
|
38
|
-
"@instructure/emotion": "10.
|
|
39
|
-
"@instructure/shared-types": "10.
|
|
40
|
-
"@instructure/ui-form-field": "10.
|
|
41
|
-
"@instructure/ui-icons": "10.
|
|
42
|
-
"@instructure/ui-react-utils": "10.
|
|
43
|
-
"@instructure/ui-testable": "10.
|
|
44
|
-
"@instructure/ui-utils": "10.
|
|
45
|
-
"@instructure/uid": "10.
|
|
38
|
+
"@instructure/emotion": "10.7.0",
|
|
39
|
+
"@instructure/shared-types": "10.7.0",
|
|
40
|
+
"@instructure/ui-form-field": "10.7.0",
|
|
41
|
+
"@instructure/ui-icons": "10.7.0",
|
|
42
|
+
"@instructure/ui-react-utils": "10.7.0",
|
|
43
|
+
"@instructure/ui-testable": "10.7.0",
|
|
44
|
+
"@instructure/ui-utils": "10.7.0",
|
|
45
|
+
"@instructure/uid": "10.7.0",
|
|
46
46
|
"keycode": "^2",
|
|
47
47
|
"prop-types": "^15.8.1"
|
|
48
48
|
},
|
|
@@ -248,7 +248,13 @@ class NumberInput extends Component<NumberInputProps, NumberInputState> {
|
|
|
248
248
|
<React.Fragment>
|
|
249
249
|
{rawLabel}
|
|
250
250
|
{isRequired && (
|
|
251
|
-
<span
|
|
251
|
+
<span
|
|
252
|
+
css={this.invalid ? styles?.requiredInvalid : {}}
|
|
253
|
+
aria-hidden={true}
|
|
254
|
+
>
|
|
255
|
+
{' '}
|
|
256
|
+
*
|
|
257
|
+
</span>
|
|
252
258
|
)}
|
|
253
259
|
</React.Fragment>
|
|
254
260
|
) : (
|