Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search input icon labels #19103

Merged
merged 3 commits into from
Aug 14, 2024
Merged

Search input icon labels #19103

merged 3 commits into from
Aug 14, 2024

Conversation

tidy-dev
Copy link
Contributor

xref: https://github.com/github/accessibility-audits/issues/5574

Description

This PR adds the ability to prefix our textboxes with an icon. Then, it uses that to apply a search icon in front of all of our filter text boxes in the section filter list component (which I think is all of them). Also, the update branch dialog had some css that needed adjusted to work with the new icon placement.

This improves accessibility by providing a visual label for our search inputs (along with the placeholder text of "filter").

Other notes: I tested on dark mode as well. In both light and dark, the icon not only meets 3:1 but 4.5:1 contrast.

Screenshots

Showing pick branch dialog filter with search icon
Showing clone dialog filter with search icon
Showing Merge dialog filter with search icon
Showing branch list filter with search icon
Showing repository list filter with search icon

Release notes

Notes: [Improved] Added search input visual labeling in the form of a search icon.

@tidy-dev tidy-dev merged commit e1fe8b2 into development Aug 14, 2024
8 checks passed
@tidy-dev tidy-dev deleted the search-input-icon-labels branch August 14, 2024 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants