Skip to content

Commit

Permalink
feat(InputField): add ariaLabel prop
Browse files Browse the repository at this point in the history
  • Loading branch information
sarkaaa committed Dec 17, 2024
1 parent 1f7a5f6 commit 210a022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/orbit-components/src/InputField/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ const InputField = React.forwardRef<HTMLInputElement, Props>((props, ref) => {
ref={ref}
tabIndex={tabIndex !== undefined ? Number(tabIndex) : undefined}
list={list}
aria-labelledby={!label ? inputId : undefined}
aria-label={label ? (label as string) : undefined}
aria-describedby={shown ? `${inputId}-feedback` : undefined}
aria-invalid={error ? true : undefined}
aria-autocomplete={ariaAutocomplete}
Expand Down

0 comments on commit 210a022

Please sign in to comment.