-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[docs] Add onTouchTap documentation for FlatButton #6147
[docs] Add onTouchTap documentation for FlatButton #6147
Conversation
Shahrukh-Zindani
commented
Feb 14, 2017
•
edited by oliviertassinari
Loading
edited by oliviertassinari
- PR has tests / docs demo, and is linted.
- Commit and PR titles begin with [ComponentName], and are in imperative form: "[Component] Fix leaky abstraction".
- Description explains the issue / use-case resolved, and auto-closes the related issue(s) (http://tr.im/vFqem).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why removing the primary
documentation?
My bad. Added primary documentation back. |
src/FlatButton/FlatButton.js
Outdated
* If true, colors button according to | ||
* primaryTextColor from the Theme. | ||
*/ | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oups
src/FlatButton/FlatButton.js
Outdated
@@ -76,9 +76,14 @@ class FlatButton extends Component { | |||
/** @ignore */ | |||
onTouchStart: PropTypes.func, | |||
/** | |||
* Callback function for when the element is selected via a touch tap. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of the time, we follow that template:
/**
* Callback function fired when the button is touch-tapped.
*
* @param {object} event TouchTap event targeting the button.
*/
onTouchTap: PropTypes.func,
src/FlatButton/FlatButton.js
Outdated
* Callback function fired when the button is touch-tapped. | ||
* | ||
* @param {object} event TouchTap event targeting the button. | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same wrong indentation.
Thanks. |