-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TextInput: Add
LeadingVisual
/TrailingVisual
to be part of the acc…
…essible description in `TextInput` (#4939) * Add `aria-describedby` to `TextInput` when `LeadingVisual` === `string` * Update to include `TrailingVisual`, icons * Add tests, update snapshots * Axe fix: Add `aria-label` to story * Add changeset * Add loading to description * Add new prop `loaderText`, reference loading with text input * Update changeset * Update packages/react/src/TextInput/TextInput.tsx Co-authored-by: Ian Sanders <iansan5653@github.com> * Add `aria-hidden` * Update docs note, test snapshots * format * Fix tests * Update snapshots again * Update snapshots again * Move `visuallyhidden` span * Update snapshots --------- Co-authored-by: Ian Sanders <iansan5653@github.com>
- Loading branch information
1 parent
bd1f1c2
commit 9936add
Showing
10 changed files
with
915 additions
and
1,033 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@primer/react': minor | ||
--- | ||
|
||
Adds `aria-describedby` for `LeadingVisual` and `TrailingVisual` in `TextInput`; adds new prop `loaderText` to convey loading state to screen readers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.