-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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] Fix FlatButton example Firefox behavior #5933
Conversation
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.
That's following the fixed used with the <RaisedButton />
👍 .
@@ -32,6 +40,7 @@ const FlatButtonExampleComplex = () => ( | |||
href="https://github.com/callemall/material-ui" | |||
target="_blank" | |||
label="GitHub Link" | |||
style={styles.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.
Looks like we don't need that property here.
@@ -4,6 +4,9 @@ import FontIcon from 'material-ui/FontIcon'; | |||
import ActionAndroid from 'material-ui/svg-icons/action/android'; | |||
|
|||
const styles = { | |||
button: { | |||
verticalAlign: 'top', |
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.
middle
to follow the align applied with a link (<a />
).
@@ -4,6 +4,9 @@ import FontIcon from 'material-ui/FontIcon'; | |||
import ActionAndroid from 'material-ui/svg-icons/action/android'; | |||
|
|||
const styles = { | |||
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.
I think that we can rename that key. uploadButton
sound better.
@@ -4,6 +4,9 @@ import FontIcon from 'material-ui/FontIcon'; | |||
import ActionAndroid from 'material-ui/svg-icons/action/android'; | |||
|
|||
const styles = { | |||
button: { | |||
verticalAlign: 'top', | |||
}, | |||
imageInput: { |
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.
uploadInput
sounds better too here.
Simple fix of Flat button example in Firefox
Issue link
Vertical-align added to keep them aligned properly
Closes #5916