-
Notifications
You must be signed in to change notification settings - Fork 3
feat: introduce alwaysOpen prop in F0Select for inline selection lists #3131
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
base: main
Are you sure you want to change the base?
Conversation
🔍 Visual review for your branch is published 🔍Here are the links to: |
size-limit report 📦
|
✅ No New Circular DependenciesNo new circular dependencies detected. Current count: 157 |
| /** | ||
| * Height of the list container when alwaysOpen is true. | ||
| */ | ||
| alwaysOpenHeight?: "sm" | "md" | "lg" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we limit the height in the component? The component should use the max height and the parent should be the one that set the height limit
| * The component renders only the content area (options list) without the input field. | ||
| * Useful for inline selection lists or embedded selectors. | ||
| */ | ||
| alwaysOpen?: boolean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not asList?. For me alwaysOpen, means the popover is always open, but we will not use a popover
| filters, | ||
| currentFilters, | ||
| onFiltersChange, | ||
| autoFocus = true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think autofocus only should be true by defait in the "popover" mode
Description
Screenshots (if applicable)
[Link to Figma Design](Figma URL here)
Implementation details