Skip to content

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

Merged
merged 8 commits into from
Aug 17, 2023

Conversation

balzss
Copy link
Contributor

@balzss balzss commented Aug 8, 2023

INSTUI-3820

test plan:

  • add width="8rem" to a Select or SimpleSelect component
  • click to the right of the component -> the dropdown shouldn't open

@balzss balzss self-assigned this Aug 8, 2023
@github-actions
Copy link

github-actions bot commented Aug 8, 2023

Preview URL: https://1248--preview-instui.netlify.app

@balzss balzss changed the title fix: select width only applies to the input inside fix: <Select/> width prop only applies to the input inside Aug 9, 2023
@balzss balzss requested review from matyasf and HerrTopi August 9, 2023 09:22
Copy link
Collaborator

@matyasf matyasf left a comment

Choose a reason for hiding this comment

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

see my comments

Comment on lines 677 to 681
const extendedStyle = {
...(styles?.select as object),
width: this.props.width || '100%',
display: 'inline-block'
}
Copy link
Collaborator

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.

Copy link
Contributor Author

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

@balzss balzss requested a review from matyasf August 9, 2023 13:23
@matyasf matyasf self-requested a review August 10, 2023 09:00
Copy link
Collaborator

@matyasf matyasf left a 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.

@matyasf matyasf self-requested a review August 10, 2023 12:06
@balzss balzss requested a review from joyenjoyer August 16, 2023 08:56
@balzss balzss merged commit 6ebc266 into master Aug 17, 2023
@balzss balzss deleted the fix/select-width-prop branch August 17, 2023 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants