BREAKING: Chips redesign#369
Conversation
|
Hey @gawrysiak, thank you for your pull request 🤗. The documentation from this branch can be viewed here. |
5613de2 to
c970557
Compare
satya164
left a comment
There was a problem hiding this comment.
Thanks for the PR! Can you rebase and drop the unrelated commits?
| /** | ||
| * Displays the chip as pressed. | ||
| */ | ||
| pressed?: boolean, |
There was a problem hiding this comment.
Instead of pressed prop, we should automatically apply the styles on onPressIn and remove them in onPressOut (only when onPress prop is provided).
| /** | ||
| * Displays chip with outline. | ||
| */ | ||
| outlined?: boolean, |
There was a problem hiding this comment.
Instead of outlined prop, can you add a mode prop similar to button? The values can be flat and outlined, and default would be flat.
There was a problem hiding this comment.
yeah, I was looking into the button. Couldn't figure out the default mode name. Flat is good 👍
| ]} | ||
| > | ||
| {icon || selected ? ( | ||
| /* $FlowFixMe */ <Icon |
| size={20} | ||
| /> | ||
| ) : null} | ||
| {avatar |
There was a problem hiding this comment.
Probably shouldn't allow both icon and avatarto be specified
a56adc8 to
af160cc
Compare
5b68f61 to
f6d1b56
Compare
f394776 to
430b3e6
Compare
ef4b054 to
8344078
Compare
cf0531b to
1d511cc
Compare
8344078 to
59f52ae
Compare
ef02cd7 to
d8182b4
Compare
|
Selected with image looks like it has a padding issue on the left due to longer text? |
|
@8BallBomBom you're right, nice catch. It has been fixed in a later commit (59f52ae). |
|
Hi @gawrysiak, could you suggest how to style the actived state of Chip (with difference text color), similar this screenshot - https://user-images.githubusercontent.com/1174278/39865846-895aaf44-544e-11e8-9097-95dd3d67a525.png Thank you! |






Chip redesign proposal for 2.0.
Motivation
Fixes #357.
Test plan
Snapshot tests updated. Run
yarn test.