Skip to content

Comments

Searchbox component issues and improvements#275

Merged
vrundakansara merged 24 commits intobrainstormforce:devfrom
jaieds:searchbox-component/improvement
Mar 14, 2025
Merged

Searchbox component issues and improvements#275
vrundakansara merged 24 commits intobrainstormforce:devfrom
jaieds:searchbox-component/improvement

Conversation

@jaieds
Copy link
Contributor

@jaieds jaieds commented Mar 10, 2025

Description

  • fix: Dropdown not displaying.
  • Added support for keyboard navigation.
  • Added new props.

Screenshots

Types of changes

How has this been tested?

Checklist:

  • My code is tested
  • My code passes the PHPCS tests
  • I've created the npm build.
  • My code follows accessibility standards
  • My code has proper inline documentation
  • I've included any necessary tests
  • I've included developer documentation
  • I've added proper labels to this pull request

jaieds added 8 commits March 10, 2025 15:35
- Add focus-within styles for primary and secondary variants
- Update disabled state to use outline instead of border
- Improve visual feedback for different input states
- Add `clearSearchOnClick` prop to optionally clear search term
- Implement focus handling to open dropdown when input is not empty
- Enhance SearchBoxItem with click and accessibility improvements
- Add tabindex and role for better keyboard navigation
- Utilize `callAll` utility for combining multiple click handlers
…bility

- Implement list navigation using Floating UI's useListNavigation
- Add keyboard interactions for dropdown opening and item selection
- Convert SearchBoxItem to a button for better accessibility
- Integrate FloatingFocusManager for improved focus management
- Add active state highlighting for list items
- Remove unused imports and simplify component logic
- After pressing arrow down
- After pressing arrow up
@jaieds jaieds changed the title Searchbox component improvements Searchbox component issues and improvements Mar 10, 2025
@jaieds jaieds force-pushed the searchbox-component/improvement branch from edbcf0b to c4f8675 Compare March 12, 2025 10:07
Copy link
Contributor

@ravindrakele ravindrakele left a comment

Choose a reason for hiding this comment

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

https://d.pr/i/7aW4cD

I am trying to see the search results, but I think its not working.

Can we add a story for working searchbox (manually) ?

@ravindrakele
Copy link
Contributor

ravindrakele commented Mar 14, 2025

https://d.pr/i/ryLxY3

sizes not working for Ghost variant, this could a story issue (not from component)

@jaieds
Copy link
Contributor Author

jaieds commented Mar 14, 2025

@ravindra114, I didn't find any issue. Somehow, after I pushed changes on the remote repository it forked the force-ui repository and because of that changes are not reflecting on your end.

https://d.pr/v/aG3BEH

@jaieds jaieds requested a review from ravindrakele March 14, 2025 08:43
@ravindrakele
Copy link
Contributor

ravindrakele commented Mar 14, 2025

https://d.pr/i/hSl0ku <- minor padding issue

https://d.pr/i/fJ4wKd <- gap seems is different for sm variant.

https://d.pr/i/wtPbzV <- button background color

@jaieds only this fixes is need, rest looks good!

@jaieds
Copy link
Contributor Author

jaieds commented Mar 14, 2025

@ravindra114, all issues have been resolved except for the gap. The gap in the actual implementation doesn’t look promising, so I’ve set a suitable value for it.

Copy link
Contributor

@ravindrakele ravindrakele left a comment

Choose a reason for hiding this comment

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

Looks fine ✅

@vrundakansara vrundakansara merged commit 09dbbf7 into brainstormforce:dev Mar 14, 2025
3 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.

3 participants