Skip to content
This repository has been archived by the owner on Dec 23, 2022. It is now read-only.

Add support for other Material UI variants (outlined, filled) #236

Merged
merged 9 commits into from
Oct 15, 2018

Conversation

neilpoulin
Copy link
Contributor

Support outlined and filled variants. Fixes #234.

Filled:
image

Outlined:
image

@neilpoulin
Copy link
Contributor Author

neilpoulin commented Oct 15, 2018

Hmm, I'm also getting the same test failure when I run the tests on Master. Anyone have an idea of what's going on?

Edit: Fixed the tests. I needed to upgrade the enzyme package, per this issue: enzymejs/enzyme#1411

Copy link
Member

@leMaik leMaik left a comment

Choose a reason for hiding this comment

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

Great work, @neilpoulin 🎉 This is a really good first contribution to this project.

It's a bit hard to review the changes due to a bunch of unrelated formatting changes, though. Why are they needed? Some might even trigger our linter. Could you revert them? :)

src/ChipInput.spec.js Show resolved Hide resolved
stories/index.js Outdated Show resolved Hide resolved
stories/index.js Show resolved Hide resolved
src/ChipInput.js Show resolved Hide resolved
src/ChipInput.js Outdated
@@ -161,9 +206,9 @@ class ChipInput extends React.Component {
if (this.state.focusedChip != null) {
this.setState({ focusedChip: null })
}
}
};
Copy link
Member

Choose a reason for hiding this comment

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

I'm pretty sure that this won't lint. We use standard linter (npm run lint)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Apologies for the added semis and other formatting - my IDE was not playing nicely with your formatting standards, and I wasn't being careful enough to notice these changes. I'll get them cleaned out!

Copy link
Member

Choose a reason for hiding this comment

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

Don't worry. I really like this PR, no matter the formatting. 😉 npm run lint -- --fix can probably fix most of the issues.

src/ChipInput.js Outdated Show resolved Hide resolved
src/ChipInput.js Outdated Show resolved Hide resolved
package.json Show resolved Hide resolved
Copy link
Member

@leMaik leMaik left a comment

Choose a reason for hiding this comment

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

Awesome! 🎉

@leMaik leMaik merged commit fbf8499 into TeamWertarbyte:master Oct 15, 2018
@leMaik
Copy link
Member

leMaik commented Oct 15, 2018

@neilpoulin Could you update the TS definitions? I forgot about them.

@neilpoulin
Copy link
Contributor Author

sure thing, i'll get another PR up for that shortly. Thanks for the responsiveness! Any idea when this might be available on NPM?

@neilpoulin neilpoulin deleted the feature/outlined-input branch October 15, 2018 22:44
@julienexcusemyparty
Copy link

Hi @leMaik & @neilpoulin ! The build crashes with this feature. Normal ? Thanks.

@leMaik
Copy link
Member

leMaik commented Oct 17, 2018

@julienexcusemyparty That's obviously not normal. Are you sure that the crash you observe is due to this PR? Could you please provide an error log? 🔮

Edit: Doesn't crash for me. Please open a new issue and provide a log.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants