-
Notifications
You must be signed in to change notification settings - Fork 33
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
Feature/add size prop #1251
Feature/add size prop #1251
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/styleguide-core/styleguide/jrdn7ulds |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 11ef5ac:
|
72e3c7b
to
93ac131
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.
Good work! Do you mind to add snapshots tests for the sizes? 😄
e084989
to
136a24a
Compare
954ad96
to
1d259f8
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.
✨
1d259f8
to
e809252
Compare
What is the purpose of this pull request?
Add display prop to make AutocompleteInput size be determined by its value
What problem is this solving?
issue 1244
The static definition of the AutocompleteInput component's size
How should this be manually tested?
Clone this repo and run
yarn && yarn styleguide
go to
localhost:6060
Screenshots or example usage
In the file
react/components/AutcompleteInput/README.md
you can set the propdisplay
to either value ofsmall
,regular
,large
or you can simply ignore this prop (default is set toregular
).You should see the bar changing according to the specified size
small - regular - large (respectively)
Types of changes