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 the listbox min-height issue and remove the popover padding #165

Merged
merged 5 commits into from
Apr 30, 2024

Conversation

florianstancioiu
Copy link
Contributor

  • Fix the listbox .items { min-height: 150px } issue
  • Remove the unneeded popover padding
  • Add storybook story to test out the fix for listbox

make it so that the min-height of the `.items` is the limit height given by `useListbox`

it handles the edgecase where min-height is 150px (default for `virtualize` items)
and the height of the items is smaller than  150px which renders a white scrollable area after the items
Copy link

github-actions bot commented Apr 29, 2024

PR Preview Action v1.4.7
Preview removed because the pull request was closed.
2024-04-30 07:02 UTC

Copy link
Contributor

@cristinecula cristinecula left a comment

Choose a reason for hiding this comment

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

Very good!

src/listbox/index.ts Outdated Show resolved Hide resolved
stories/cosmoz-autocomplete.stories.js Outdated Show resolved Hide resolved
@cristinecula cristinecula merged commit 40428f6 into master Apr 30, 2024
4 checks passed
@cristinecula cristinecula deleted the feature/fix-listbox-height branch April 30, 2024 07:01
github-actions bot pushed a commit that referenced this pull request Apr 30, 2024
## [8.8.1](v8.8.0...v8.8.1) (2024-04-30)

### Bug Fixes

* the list has too much scroll height when there are few items and extra padding  ([#165](#165)) ([40428f6](40428f6))
Copy link

🎉 This PR is included in version 8.8.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants