Repository navigation
640 Add an optional clear button to the search widget - #643
Merged
Merged
Conversation
Authors can tick "Show a clear button in the search box". A cross at the end of the box appears once something is typed, empties the box and puts the visitor back in it. With instant search it also closes the suggestions. It is a reset button, so it works without JavaScript. Off for existing widgets. Refs #640
|
Review app for PR 643 was deleted |
E2E tests passed362 passed, 0 failed, 4 skipped in 19 min 46 s Commit |
paulc1983
approved these changes
Oct 19, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #640
The search widget can now show a clear button at the end of its box.
default, so existing widgets do not change.
in it; with instant search it also closes the suggestions.
Tested: E2E 364, Unit 7476 and Integration 1099 passed, including new E2E tests for clearing with
and without instant search, without JavaScript, and an axe check with the button showing.