@thecb/components 8.4.11-beta.4 → 8.4.11-beta.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "8.4.11-beta.4",
3
+ "version": "8.4.11-beta.6",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -295,7 +295,7 @@ const Dropdown = ({
295
295
  aria-labelledby={ariaLabelledby}
296
296
  aria-describedby={ariaDescribedby}
297
297
  aria-expanded={isOpen}
298
- aria-live="assertive"
298
+ aria-live="polite"
299
299
  autoComplete={autocompleteValue}
300
300
  background={isOpen ? themeValues.hoverColor : WHITE}
301
301
  borderRadius="2px"
@@ -249,7 +249,7 @@ const FormInput = ({
249
249
  />
250
250
  )}
251
251
  </Box>
252
- <Stack direction="row" justify="space-between" role="alert">
252
+ <Stack direction="row" justify="space-between" aria-live="polite">
253
253
  {(field.hasErrors && field.dirty) || (field.hasErrors && showErrors) ? (
254
254
  <Text
255
255
  color={ERROR_COLOR}
@@ -96,7 +96,7 @@ const FormSelect = ({
96
96
  text-transform: uppercase;
97
97
  }`}
98
98
  id={createIdFromString(labelTextWhenNoError, "error message")}
99
- aria-live="assertive"
99
+ aria-live="polite"
100
100
  >
101
101
  {(field.hasErrors && field.dirty) || (field.hasErrors && showErrors)
102
102
  ? errorMessages[field.errors[0]]
@@ -84,7 +84,7 @@ const AddressForm = ({
84
84
  showErrors={showErrors}
85
85
  onKeyDown={e => e.key === "Enter" && handleSubmit(e)}
86
86
  autocomplete="address-line2"
87
- aria-label="address line 2"
87
+ aria-label="Apt, Suite, Unit, Floor, etc. (Optional)"
88
88
  />
89
89
  <FormInput
90
90
  labelTextWhenNoError="City"