@khanacademy/wonder-blocks-birthday-picker 3.0.14 → 3.1.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
@@ -1,5 +1,11 @@
1
1
  # @khanacademy/wonder-blocks-birthday-picker
2
2
 
3
+ ## 3.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 26258733: Exposes aria-label attributes on each field with values from the labels prop.
8
+
3
9
  ## 3.0.14
4
10
 
5
11
  ### Patch Changes
package/dist/es/index.js CHANGED
@@ -153,6 +153,7 @@ class BirthdayPicker extends React.Component {
153
153
  } = this.state;
154
154
  const minWidth = this.getMonthYearWidth(monthYearOnly);
155
155
  return React.createElement(SingleSelect, {
156
+ "aria-label": this.labels.month,
156
157
  "aria-invalid": !!this.state.error,
157
158
  error: !!this.state.error,
158
159
  disabled: disabled,
@@ -184,6 +185,7 @@ class BirthdayPicker extends React.Component {
184
185
  return React.createElement(React.Fragment, null, React.createElement(Strut, {
185
186
  size: spacing.xSmall_8
186
187
  }), React.createElement(SingleSelect, {
188
+ "aria-label": this.labels.day,
187
189
  "aria-invalid": !!this.state.error,
188
190
  error: !!this.state.error,
189
191
  disabled: disabled,
@@ -214,6 +216,7 @@ class BirthdayPicker extends React.Component {
214
216
  } = this.state;
215
217
  const minWidth = this.getMonthYearWidth(monthYearOnly);
216
218
  return React.createElement(SingleSelect, {
219
+ "aria-label": this.labels.year,
217
220
  "aria-invalid": !!this.state.error,
218
221
  error: !!this.state.error,
219
222
  disabled: disabled,
package/dist/index.js CHANGED
@@ -180,6 +180,7 @@ class BirthdayPicker extends React__namespace.Component {
180
180
  } = this.state;
181
181
  const minWidth = this.getMonthYearWidth(monthYearOnly);
182
182
  return React__namespace.createElement(wonderBlocksDropdown.SingleSelect, {
183
+ "aria-label": this.labels.month,
183
184
  "aria-invalid": !!this.state.error,
184
185
  error: !!this.state.error,
185
186
  disabled: disabled,
@@ -211,6 +212,7 @@ class BirthdayPicker extends React__namespace.Component {
211
212
  return React__namespace.createElement(React__namespace.Fragment, null, React__namespace.createElement(wonderBlocksLayout.Strut, {
212
213
  size: wonderBlocksTokens.spacing.xSmall_8
213
214
  }), React__namespace.createElement(wonderBlocksDropdown.SingleSelect, {
215
+ "aria-label": this.labels.day,
214
216
  "aria-invalid": !!this.state.error,
215
217
  error: !!this.state.error,
216
218
  disabled: disabled,
@@ -241,6 +243,7 @@ class BirthdayPicker extends React__namespace.Component {
241
243
  } = this.state;
242
244
  const minWidth = this.getMonthYearWidth(monthYearOnly);
243
245
  return React__namespace.createElement(wonderBlocksDropdown.SingleSelect, {
246
+ "aria-label": this.labels.year,
244
247
  "aria-invalid": !!this.state.error,
245
248
  error: !!this.state.error,
246
249
  disabled: disabled,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khanacademy/wonder-blocks-birthday-picker",
3
- "version": "3.0.14",
3
+ "version": "3.1.0",
4
4
  "design": "v1",
5
5
  "publishConfig": {
6
6
  "access": "public"