@rhc-shared-components/form-select-component 1.0.2 → 1.0.3
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/index.js +1 -0
- package/dist/index.modern.js +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -185,6 +185,7 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
185
185
|
isFullHeight: isFullHeight,
|
|
186
186
|
isDisabled: isSubmitting || isDisabled,
|
|
187
187
|
"aria-required": isRequired,
|
|
188
|
+
"aria-label": isRequired ? label + ", required" : label,
|
|
188
189
|
children: value || placeholder
|
|
189
190
|
});
|
|
190
191
|
};
|
package/dist/index.modern.js
CHANGED
|
@@ -153,6 +153,7 @@ const FormSelect = _ref => {
|
|
|
153
153
|
isFullHeight: isFullHeight,
|
|
154
154
|
isDisabled: isSubmitting || isDisabled,
|
|
155
155
|
"aria-required": isRequired,
|
|
156
|
+
"aria-label": isRequired ? `${label}, required` : label,
|
|
156
157
|
children: value || placeholder
|
|
157
158
|
});
|
|
158
159
|
return jsxs(FormGroupContainer, {
|