-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Improve keyboard interactions in searchbox (#6537)
* feat(search): Add keyboard interactions to searchbox and fix useKeyboardCommands removeEventListener * feat(search): Move searchHitToLinkPath and remove console logs * feat(search): Bound selection of search results and add scroll into view while selecting * feat(search): Add accessibility tags to searchbox * feat(search): Simplify searchbox keyboard commands logic * feat(search): Add brackets on every if statement * feat(search): Rename searchUtils file * feat(search): Use arrow function on eventHandler * feat(search): Remove unnecessary null check * feat(search): Remove useless template string * feat(search): Reset searchbox onClose * feat(search): Shrink selectedResult state type * feat(search): Change selectedResult type to number|undefined * feat(search): Run handleClose before router.push * feat(search): Improve boolean logic and remove useless checks * feat(search): Remove useless early return from onSubmit * feat(search): Use tabs component in searchbox * feat(search): Improve readability * feat(search): Add secondary label to tabs * feat(search): Remove search empty state
- Loading branch information
Showing
8 changed files
with
148 additions
and
91 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.