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

update SearchBar into SearchBar2024 #3820

Merged
merged 3 commits into from
Feb 1, 2024

Conversation

ivanko22
Copy link
Contributor

What github.com/wevote/WebApp/issues does this fix?

  • Implement updates on the Search Bar, renaming it to SearchBar2024
  • Ensure all references to the SearchBar within the web app are transitioned to SearchBar2024

Changes included this pull request?

@DaleMcGrew
Copy link
Member

Hi @ivanko22 thank you for this update to the pull request. You are moving in the right direction. The idea behind creating a new SearchBar2024 component is so we could leave the SearchBar component in place as-is most places in the code, and test SearchBar2024 (and the new lower-level component you created from Storybook) in different contexts.

I would ask that you leave this component unchanged: src/js/components/Search/SearchBar.jsx

...and then create a new component src/js/components/Search/SearchBar2024.jsx that includes your new Storybook search input.

Note: SearchBar and SearchBar2024 should be interchangeable, so we can compare the two.

Copy link

@accesslint accesslint bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are accessibility issues in these changes.

/>
<div className="search-bar-options">
{(clearButton && searchString && searchString.length > 0) && (
<button
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

</button>
)}
{(searchButton) && (
<button
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

@ivanko22
Copy link
Contributor Author

Hi @DaleMcGrew I change back files with SearchBar and keep SearchBar2024 in Campaign and OneValue.

@ivanko22
Copy link
Contributor Author

@DaleMcGrew
Copy link
Member

Great work @ivanko22! Thank you. 👍

@DaleMcGrew DaleMcGrew merged commit 18a3012 into wevote:develop Feb 1, 2024
4 checks passed
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