-
Notifications
You must be signed in to change notification settings - Fork 106
fix: <Select/> width prop only applies to the input inside #1248
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
Conversation
Preview URL: https://1248--preview-instui.netlify.app |
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.
see my comments
const extendedStyle = { | ||
...(styles?.select as object), | ||
width: this.props.width || '100%', | ||
display: 'inline-block' | ||
} |
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.
CSS should be in styles.ts
. This should be in the select
object there.
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.
good point, moved it there
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 you please check Chromatic? It shows visual changes, this should not happen, this'd be a breaking change.
INSTUI-3820
test plan:
width="8rem"
to aSelect
orSimpleSelect
component