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(checkbox): Add checkbox demo #46

Merged
merged 5 commits into from
Apr 30, 2018
Merged

Conversation

patrickrodee
Copy link
Contributor

Add checkbox demo. Update button catalog icon to use large icon. Remove catalog icon size constraints.

@patrickrodee patrickrodee changed the title feat(checkboxes): Add checkbox demo feat(checkbox): Add checkbox demo Apr 25, 2018
return (
<div>
<div className='mdc-checkbox demo-checkbox' ref={this.initCheckbox}>
<input type='checkbox'
Copy link
Contributor

Choose a reason for hiding this comment

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

I think I would make one of these checkboxes checked, so our hero image is nice

render() {
return (
<div>
{this.renderCheckboxVariant('Checked', {checked: true})}
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 could drop this "checked" variant if you change the hero image

return (
<div>
{this.renderCheckboxVariant('Checked', {checked: true})}
{this.renderCheckboxVariant('Indeterminate', {indeterminate: true})}
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: intedeterminate is more a state than a variant.....but whatevs

(theres really only 1 variant of checkbox, which makes this page a little sparse)

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's worth showing indeterminate, otherwise people might not even realize we have support for it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Keeping indeterminate

@lynnmercier lynnmercier self-assigned this Apr 27, 2018
@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI the update to the button front-page image and the relevant CSS is already in master now.

src/App.js Outdated
@@ -51,6 +54,7 @@ class App extends Component {
<HeaderBar isTopPage />
<ul id='catalog-image-list' className='mdc-image-list standard-image-list mdc-top-app-bar--fixed-adjust'>
{this.renderListItem('Button', buttonImg, `${PUBLIC_URL}/button`)}
{this.renderListItem('Checkbox', checkboxImg, `${PUBLIC_URL}/checkbox`)}
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI you can reference the image URL directly here and don't need PUBLIC_URL anymore, and don't need the image import above. (You'll probably see when you merge with master)

Copy link
Contributor

@lynnmercier lynnmercier left a comment

Choose a reason for hiding this comment

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

LGTM, but you have a double import in App.js

@patrickrodee patrickrodee merged commit ebb5c1e into master Apr 30, 2018
@williamernest williamernest deleted the feat/demos/checkboxes branch May 3, 2018 15:13
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