@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 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,