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

feat: add prop variant to the Input Component #1776

Merged

Conversation

lyon93
Copy link
Contributor

@lyon93 lyon93 commented Aug 7, 2020

fix: #1775

Changes proposed in this PR:

@nexxtway/react-rainbow

@commit-lint
Copy link

commit-lint bot commented Aug 7, 2020

Features

  • add prop variant to the Input Component (de7ce0d)

Bug Fixes

  • add variant prop to support typescript (ba2abd6)

Contributors

@lyon93, @TahimiLeonBravo

Commit-Lint commands

You can trigger Commit-Lint actions by commenting on this PR:

  • @Commit-Lint merge patch will merge dependabot PR on "patch" versions (X.X.Y - Y change)
  • @Commit-Lint merge minor will merge dependabot PR on "minor" versions (X.Y.Y - Y change)
  • @Commit-Lint merge major will merge dependabot PR on "major" versions (Y.Y.Y - Y change)
  • @Commit-Lint merge disable will desactivate merge dependabot PR
  • @Commit-Lint review will approve dependabot PR
  • @Commit-Lint stop review will stop approve dependabot PR

@TahimiLeonBravo
Copy link
Collaborator

@lyon93 remove the shadow when readOnly is passed
Screen Shot 2020-08-08 at 12 27 10 PM

remove the shadow when disabled is passed
Screen Shot 2020-08-08 at 12 26 54 PM

@@ -127,6 +127,9 @@ Input.propTypes = {
className: PropTypes.string,
/** An object with custom style applied to the outer element. */
style: PropTypes.object,
/** The variant changes the appearance of the Input. Accepted variants include default,
* and shaded. This value defaults to default. */
variant: PropTypes.oneOf(['default', 'shaded']),

Choose a reason for hiding this comment

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

we need to add variant prop to src/components/Input/index.d.ts file, in order to bring typescript support

@codeclimate
Copy link

codeclimate bot commented Aug 10, 2020

Code Climate has analyzed commit 3f50399 and detected 0 issues on this pull request.

View more on Code Climate.

@TahimiLeonBravo TahimiLeonBravo merged commit a7a401b into nexxtway:master Aug 10, 2020
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.

feat: add prop variant to the Input component
3 participants