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

Update Documentation for Buttons #2745

Closed
wants to merge 1 commit into from

Conversation

Zadielerick
Copy link
Contributor

Still need to fix a glitch with linkbutton prop messing up styles. Help is appreciated.

exampleImageInput: {
cursor: 'pointer',
position: 'absolute',
top: '0',
Copy link
Member

Choose a reason for hiding this comment

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

the quotes are not needed, what about 0?

@oliviertassinari oliviertassinari added docs Improvements or additions to the documentation PR: Needs Review labels Dec 31, 2015
@@ -222,9 +283,9 @@ const FlatButton = React.createClass({
this.props.onMouseLeave(e);
},

_handleTouchStart(e) {
_handleTouchTap(e) {
this.setState({touch: true});
Copy link
Member

Choose a reason for hiding this comment

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

Regarding this line. It's working like this but it would be better to have the touch variable as an instance property rather than in the state.
By the way, in the floating-action-button.jsx the touch state is misspelled in touched.

@oliviertassinari oliviertassinari added PR: needs revision The pull request can't be merged. More details is available on the code review or fails in the CI and removed PR: Needs Review labels Jan 2, 2016
const FloatingActionButtonExampleSimple = () => (
<div>
<FloatingActionButton>
<ToggleStar />
Copy link
Member

Choose a reason for hiding this comment

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

What do you think about using a + icon instead of the star as it's the icon the most used in the google material spec website?
(What would apply to all the examples of the FloatingActionButton)

@oliviertassinari
Copy link
Member

We will have to do something about:
capture d ecran 2016-01-04 a 23 25 36

@Zadielerick
Copy link
Contributor Author

I have tried to mess with the CSS, but can't get the button to move down... It seems to be because the linkButton renders a <a> and that acts differently than buttons. When I changed the type from <a> to <button> it fit back in. Don't know what to do.

@oliviertassinari
Copy link
Member

Ok so we have two differents issue:

@oliviertassinari
Copy link
Member

@Zadielerick Thanks againt!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation PR: needs revision The pull request can't be merged. More details is available on the code review or fails in the CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants