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

Add <Switch> #37

Merged
merged 11 commits into from
May 10, 2017
Merged

Add <Switch> #37

merged 11 commits into from
May 10, 2017

Conversation

zhusee2
Copy link
Contributor

@zhusee2 zhusee2 commented May 9, 2017

Purpose

Migrate row component <Switch>

Implement

  1. Add visual element <SwitchIcon> which assembles the appearance of an iOS switch, and should be used as a 64x32 icon.
  2. Add <Switch> to integrate <SwitchIcon> into a row component layout.
  3. Update <IconLayout> so it can turn off tooltips.

Demo

2017-05-09 5 51 46

@zhusee2 zhusee2 requested a review from cjies May 9, 2017 10:03
src/Switch.js Outdated
*/
input: PropTypes.object, // eslint-disable-line react/forbid-prop-types
turnedOn: PropTypes.bool,
defaultTurnedOn: PropTypes.bool,
Copy link
Contributor

Choose a reason for hiding this comment

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

我還是比較偏向 checkbox 的 checkeddefaultChecked,
turnedOn 我覺得會沒這麼直覺,如果沒看文件的話會一時不知道要怎麼使用 XD

Copy link
Contributor Author

Choose a reason for hiding this comment

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

也好 那就統一XD

@zhusee2 zhusee2 merged commit 3cf46ed into develop May 10, 2017
@zhusee2 zhusee2 deleted the feature/zhusee_switch branch May 10, 2017 03:17
This was referenced May 24, 2017
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.

2 participants