Skip to content

Commit

Permalink
fix: add aria label to component
Browse files Browse the repository at this point in the history
  • Loading branch information
fabio-aiello-appfolio committed Oct 5, 2023
1 parent 1997762 commit f156117
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/components/Form/FormRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,14 @@ function FormRow<T extends TypeProp>({
validFeedback={validFeedback}
width={width}
>
<InputComponent id={id} size={size} {...validProps} {...props} {...childFeedback}>
<InputComponent
id={id}
size={size}
aria-required={required}
{...validProps}
{...props}
{...childFeedback}
>
{memoChildren}
</InputComponent>
</FormLabelGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Spinner/Spinner.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const Default = () => {
</p>

<hr />
<h3>...and inherit color from it&apos;s container:</h3>
<h3>...and inherit color from its container:</h3>
<p>
<Button color="secondary" size="lg" className="me-3">
<Spinner type={type} /> Loading
Expand Down

0 comments on commit f156117

Please sign in to comment.