Skip to content

Commit

Permalink
Modified multiselect component so the required prop gets set as aria-…
Browse files Browse the repository at this point in the history
…required (#6438)
  • Loading branch information
johanna-skylight authored Aug 29, 2023
1 parent 21b9a55 commit 868a423
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ export const MultiSelect = ({
className="multi-select-dropdown"
disabled={isDisabled}
placeholder={placeholder}
inputProps={{ "aria-required": required }}
ariaInvalid={validationStatus === "error"}
registrationProps={registrationProps}
DropdownComponent={DropdownComponent}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ Object {
aria-invalid="false"
aria-labelledby="label-for-45"
aria-owns="multi-select-swabTypes-list"
aria-required="true"
autocapitalize="off"
autocomplete="off"
class="usa-combo-box__input"
Expand Down Expand Up @@ -1222,6 +1223,7 @@ Object {
aria-invalid="false"
aria-labelledby="label-for-45"
aria-owns="multi-select-swabTypes-list"
aria-required="true"
autocapitalize="off"
autocomplete="off"
class="usa-combo-box__input"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ Object {
aria-invalid="false"
aria-labelledby="label-for-5"
aria-owns="multi-select-swabTypes-list"
aria-required="true"
autocapitalize="off"
autocomplete="off"
class="usa-combo-box__input"
Expand Down Expand Up @@ -771,6 +772,7 @@ Object {
aria-invalid="false"
aria-labelledby="label-for-5"
aria-owns="multi-select-swabTypes-list"
aria-required="true"
autocapitalize="off"
autocomplete="off"
class="usa-combo-box__input"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ Object {
aria-invalid="false"
aria-labelledby="label-for-5"
aria-owns="multi-select-swabTypes-list"
aria-required="true"
autocapitalize="off"
autocomplete="off"
class="usa-combo-box__input"
Expand Down Expand Up @@ -1143,6 +1144,7 @@ Object {
aria-invalid="false"
aria-labelledby="label-for-5"
aria-owns="multi-select-swabTypes-list"
aria-required="true"
autocapitalize="off"
autocomplete="off"
class="usa-combo-box__input"
Expand Down

0 comments on commit 868a423

Please sign in to comment.