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 this page component #22

Open
sydbeth opened this issue Nov 20, 2023 · 0 comments
Open

Search this page component #22

sydbeth opened this issue Nov 20, 2023 · 0 comments
Assignees
Labels
have component Issue describing a neat component that others may want

Comments

@sydbeth
Copy link
Collaborator

sydbeth commented Nov 20, 2023

I have this component, but I'm not able to change the issue label.

This component collects a page's h2 and h3 headings into a list and allows users to search for terms. As the letters are typed into the page the css class adds a highlight to all the letters on the page with a matching combination, so that a user could scroll the page if needed. This component is brand compliant.

UX and accessibility considerations:

The highlight helps make the page more skimable if users aren't sure what the exact spelling of a term is. The autocomplete in the search box helps with this also. If a user types a term that doesn't exist it will display text that lets them know.

This component uses the combo-box role for accessibility. Users can tab into the text box, the list of terms suggested and use escape to leave the suggested list at any time. Hitting escape with letters typed in the box will erase them all and allow a user to start over.

@bryanjonker-illinois bryanjonker-illinois added the have component Issue describing a neat component that others may want label Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
have component Issue describing a neat component that others may want
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants