-
Notifications
You must be signed in to change notification settings - Fork 40
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
Feat pro 1274 pinkv2 combobox #225
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Uh oh! @ernstmul, the image you shared is missing helpful alt text. Check your pull request body. Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image. Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs. |
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.
The list doesn't scroll when using arrows to navigate
https://github.com/user-attachments/assets/46219e60-5862-4d51-a77b-17e3e7ee2ff3
Clicking on option doesn't select it, work only by pressing enter
https://github.com/user-attachments/assets/5ee12b56-1162-4c2b-bab1-f37ff3be4a55
<svg | ||
width="20" | ||
height="20" | ||
viewBox="0 0 20 20" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
fill-rule="evenodd" | ||
clip-rule="evenodd" | ||
d="M5.29289 7.29289C5.68342 6.90237 6.31658 6.90237 6.70711 7.29289L10 10.5858L13.2929 7.29289C13.6834 6.90237 14.3166 6.90237 14.7071 7.29289C15.0976 7.68342 15.0976 8.31658 14.7071 8.70711L10.7071 12.7071C10.3166 13.0976 9.68342 13.0976 9.29289 12.7071L5.29289 8.70711C4.90237 8.31658 4.90237 7.68342 5.29289 7.29289Z" | ||
/> | ||
</svg> |
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.
Can we use the Icon
component here?
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.
Yep we can! Didn't use that one before! Good suggestion, thanks!
export let disabled: ComboboxProps['disabled'] = false; | ||
export let options: ComboboxProps['options'] = []; | ||
export let label: ComboboxProps['label'] = ''; | ||
|
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.
We might need the required
state like for other inputs
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.
Added $$restProps to the input
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.
Not sure if the $$restProps is enough... I think we might need to show a *
on the label too when it's required (double check with Caio)
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 thought the $$restProps
came in handy because we extend the props from HTMLInputAttributes
, so we get all those optional props right there. Asked Caio about the *
…y when clicked on an item
#225 (review) |
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.
The scroll behavior is still weird... when I keep the arrow pressed the selected element goes beyond the fold and then the scroll "catches up" once I stop pressing the arrow
Also, should we group this with the other inputs? We might want to use the same wrapper (Base
) on this component too for consistency... wdyt?
export let disabled: ComboboxProps['disabled'] = false; | ||
export let options: ComboboxProps['options'] = []; | ||
export let label: ComboboxProps['label'] = ''; | ||
|
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.
Not sure if the $$restProps is enough... I think we might need to show a *
on the label too when it's required (double check with Caio)
Adds Combobox:
Have you read the Contributing Guidelines on issues?
✅