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 Chips page #103

Merged
merged 5 commits into from
May 3, 2018
Merged

feat: Add Chips page #103

merged 5 commits into from
May 3, 2018

Conversation

bonniezhou
Copy link
Contributor

@bonniezhou bonniezhou commented May 3, 2018

Display filter, choice, and action chips. Fixes #25.

Input chips are still WIP and the API may change significantly.

this.chipSet = new MDCChipSet(chipSetEl);
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: you can pull this all out of the constructor and just do this

initChipSet = (chipSetEl) => chipSetEl && this.chipSet = new MDCChipSet(chipSetEl);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, except I think React doesn't like assignments next to a logical operator.

<div>
<h3>Choice Chips</h3>
<div className='mdc-chip-set mdc-chip-set--choice' ref={this.initChipSet}>
{this.renderChip('Extra Small')}
Copy link
Contributor

Choose a reason for hiding this comment

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

something weird is happening with the ripple on choice chips...not sure if that is catalog's fault or the mdc-chip's fault

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seems to be the 1-pixel gap issue that's also happening in button. Fixed in Chrome v67.

@bonniezhou bonniezhou merged commit 2beb24e into master May 3, 2018
@bonniezhou bonniezhou deleted the feat/chips-page branch May 3, 2018 17:56
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.

None yet

3 participants