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