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

[FlatButton] doesn't use style prop value of icon #4459

Closed
gkrinc opened this issue Jun 9, 2016 · 2 comments
Closed

[FlatButton] doesn't use style prop value of icon #4459

gkrinc opened this issue Jun 9, 2016 · 2 comments
Labels
component: button This is the name of the generic UI component, not the React module! v0.x

Comments

@gkrinc
Copy link

gkrinc commented Jun 9, 2016

Problem description

I'm trying to force the icon to the right of the FlatButton, but the style prop value on the RefreshIcon component isn't used by the FlatButton

Steps to reproduce

<FlatButton icon={ <RefreshIcon style={{ float: 'right', marginTop: 6 }} />
} />

Versions

  • Material-UI: 0.15
  • React: 15.0.2
@aahan96
Copy link
Contributor

aahan96 commented Aug 16, 2016

@gkrinc There is no component RefreshIcon in MUI. Closing this issue for now. If you are still experiencing this issue, please comment below

@aahan96 aahan96 closed this as completed Aug 16, 2016
@gkrinc
Copy link
Author

gkrinc commented Dec 13, 2016

RefreshIcon is my component, but the style on the icon being supplied to FlatButton is being overridden by the FlatButton code...it wasn't preserving the style that I supplied. I wanted to float the icon to the right side of the button rather than to the immediate right of the button text. It would be nice if FlatButton preserved the style on the icon component being passed in.

@oliviertassinari oliviertassinari added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Dec 21, 2022
@zannager zannager added component: button This is the name of the generic UI component, not the React module! v0.x and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: button This is the name of the generic UI component, not the React module! v0.x
Projects
None yet
Development

No branches or pull requests

4 participants