-
Notifications
You must be signed in to change notification settings - Fork 64
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(component): SHIPPING-1526 adds description to Select & MultiSelect #378
Conversation
@@ -20,6 +20,7 @@ import { SelectAction, SelectOption, SelectOptionGroup, SelectProps } from './ty | |||
export const Select = typedMemo( | |||
<T extends any>({ | |||
action, | |||
description, |
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.
You shouldn't need to destructure this, since it gets passed into the Input
via rest
.
@@ -6,6 +6,7 @@ import { ListItemProps } from '../List/Item'; | |||
|
|||
interface BaseSelect extends Omit<React.HTMLAttributes<HTMLInputElement>, 'children'> { | |||
action?: SelectAction; | |||
description?: string; |
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.
This can actually accept a string | FormControlDescription
. See our Input
implements it.
Just remembered, we probably want this for |
Yeah, if we can get this for |
b1ce68e
to
efa27cd
Compare
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.
LGTM! 👍
What?
Add description prop to Select dropdown
Why?
We support the description prop, but typescript doesn't recognise it as a prop
Testing/Proof
Select
MultiSelect
ping @deini @animesh1987 @chanceaclark