@khanacademy/wonder-blocks-form 2.2.1 → 2.3.1
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/dist/es/index.js +3 -2
- package/dist/index.js +907 -804
- package/package.json +12 -12
- package/src/components/__tests__/labeled-text-field.test.js +44 -0
- package/src/components/checkbox-core.js +1 -2
- package/src/components/labeled-text-field.js +15 -7
- package/src/components/labeled-text-field.stories.js +13 -13
- package/src/components/text-field.js +4 -6
- package/src/components/text-field.stories.js +20 -18
package/dist/es/index.js
CHANGED
|
@@ -1051,7 +1051,8 @@ class LabeledTextFieldInternal extends Component {
|
|
|
1051
1051
|
testId,
|
|
1052
1052
|
readOnly,
|
|
1053
1053
|
autoComplete,
|
|
1054
|
-
forwardedRef
|
|
1054
|
+
forwardedRef,
|
|
1055
|
+
ariaDescribedby
|
|
1055
1056
|
} = this.props;
|
|
1056
1057
|
return /*#__PURE__*/createElement(IDProvider, {
|
|
1057
1058
|
id: id,
|
|
@@ -1062,7 +1063,7 @@ class LabeledTextFieldInternal extends Component {
|
|
|
1062
1063
|
style: style,
|
|
1063
1064
|
field: /*#__PURE__*/createElement(TextField, {
|
|
1064
1065
|
id: `${uniqueId}-field`,
|
|
1065
|
-
"aria-describedby": `${uniqueId}-error`,
|
|
1066
|
+
"aria-describedby": ariaDescribedby ? ariaDescribedby : `${uniqueId}-error`,
|
|
1066
1067
|
"aria-invalid": this.state.error ? "true" : "false",
|
|
1067
1068
|
testId: testId && `${testId}-field`,
|
|
1068
1069
|
type: type,
|