Skip to content

FIX: Do not show header search icon if welcome banner search shown #33098

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

Merged
merged 2 commits into from
Jun 8, 2025

Conversation

martin-brennan
Copy link
Contributor

@martin-brennan martin-brennan commented Jun 6, 2025

This brings the search_icon header search mode to parity with the
search_field mode. We don't want to show either of these if the welcome
banner is showing, since it has a search field, this is redundant.

If you scroll the page and the welcome banner is hidden, then we
show the header search icon.

This commit also cleans up some code related to the page-search
shortcut, which we no longer use, including limiting showing search
on topic only if there are > 20 posts.

Discourse-Tests.webm

This brings the search_icon header search mode to parity with the
search_field mode. We don't want to show either of these if the welcome
banner is showing, since it has a search field, this is redundant.

If you scroll the page and the welcome banner is hidden, then we
show the header search icon.

This commit also cleans up some code related to the page-search
shortcut, which we no longer use, including limiting showing search
on topic only if there are > 20 posts.
martin-brennan added a commit to discourse/discourse-search-banner that referenced this pull request Jun 6, 2025
With discourse/discourse#33098,
you can no longer see the search button in the header if
the welcome/search banner is shown, so we don't need to
check for this.
martin-brennan added a commit to discourse/discourse-search-banner that referenced this pull request Jun 6, 2025
With discourse/discourse#33098,
you can no longer see the search button in the header if
the welcome/search banner is shown, so we don't need to
check for this.
@martin-brennan martin-brennan merged commit 0971556 into main Jun 8, 2025
16 checks passed
@martin-brennan martin-brennan deleted the fix/topic-search-always-slash branch June 8, 2025 23:17
martin-brennan added a commit that referenced this pull request Jun 10, 2025
…33098)

This brings the search_icon header search mode to parity with the
search_field mode. We don't want to show either of these if the welcome
banner is showing, since it has a search field, this is redundant.

If you scroll the page and the welcome banner is hidden, then we
show the header search icon.

This commit also cleans up some code related to the page-search
shortcut, which we no longer use, including limiting showing search
on topic only if there are > 20 posts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants