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

fix search width #1413

Merged
merged 2 commits into from
Jan 6, 2025
Merged

fix search width #1413

merged 2 commits into from
Jan 6, 2025

Conversation

Sebastian-ubs
Copy link
Contributor

@Sebastian-ubs Sebastian-ubs commented Dec 20, 2024

Fixes the search bar

  • width / placement of x button now always inside of the input
  • accessibility: onClick on the x button instead of the icon

This is a breaking change for (potential) extensions that use TabNavigationContentSearch together with the optional isSearchBarfullWidth parameter as this was removed in favor of the more flexible searchClassName.
I'm not aware of extensions that use TabNavigationContentSearch .

Before
396903843-d34dd81e-32f3-436f-a2fc-e101f9c012db

After
image

This change is Reviewable

@Sebastian-ubs Sebastian-ubs linked an issue Dec 20, 2024 that may be closed by this pull request
@Sebastian-ubs Sebastian-ubs force-pushed the 1405-SearchBar-layout-is-broken branch from a93e505 to 8556eec Compare December 20, 2024 17:05
@Sebastian-ubs Sebastian-ubs force-pushed the 1405-SearchBar-layout-is-broken branch from e567abb to 9363bdc Compare December 20, 2024 17:37
@Sebastian-ubs Sebastian-ubs enabled auto-merge (squash) December 20, 2024 17:42
Copy link
Contributor

@rolfheij-sil rolfheij-sil left a comment

Choose a reason for hiding this comment

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

Reviewed 10 of 10 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Sebastian-ubs)


lib/platform-bible-react/src/components/advanced/tab-navigation-content-search.component.tsx line 30 at r1 (raw file):

  /** Optional className to modify the search input */
  searchClassName?: string;

Shouldn't this just be className?

Copy link
Contributor Author

@Sebastian-ubs Sebastian-ubs left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @rolfheij-sil)


lib/platform-bible-react/src/components/advanced/tab-navigation-content-search.component.tsx line 30 at r1 (raw file):

Previously, rolfheij-sil (Rolf Heij) wrote…

Shouldn't this just be className?

well, my thought was to indicate where the className would be applied. Thanks for reviewing.

Copy link
Contributor

@rolfheij-sil rolfheij-sil left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@Sebastian-ubs Sebastian-ubs merged commit e326ad4 into main Jan 6, 2025
7 checks passed
@Sebastian-ubs Sebastian-ubs deleted the 1405-SearchBar-layout-is-broken branch January 6, 2025 15:36
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.

SearchBar layout is broken
2 participants