Skip to content
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

Merged
merged 18 commits into from
Jun 26, 2020
Merged

Feature/add size prop #1251

merged 18 commits into from
Jun 26, 2020

Conversation

edenalsant
Copy link
Contributor

@edenalsant edenalsant commented Jun 17, 2020

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 prop display to either value of small, regular, large or you can simply ignore this prop (default is set to regular).
You should see the bar changing according to the specified size

image
small - regular - large (respectively)

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Requires change to documentation, which has been updated accordingly.

@vercel
Copy link

vercel bot commented Jun 17, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/styleguide-core/styleguide/jrdn7ulds
✅ Preview: https://styleguide-git-feature-add-size-prop.styleguide-core.vercel.app

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jun 17, 2020

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:

Sandbox Source
empty-voice-xt49j Configuration

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Contributor

@thayannevls thayannevls left a 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? 😄

Copy link
Contributor

@thayannevls thayannevls left a comment

Choose a reason for hiding this comment

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

@matheusps matheusps merged commit c5054bf into master Jun 26, 2020
@matheusps matheusps deleted the feature/add-size-prop branch June 26, 2020 15:00
@vlaux vlaux linked an issue Jul 10, 2020 that may be closed by this pull request
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.

Use size prop on AutocompleteInput
7 participants