material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

[FlatButton] Styling not working after updating from 14.4 to 15.0

Open rob2d opened this issue 10 years ago • 4 comments

Problem description

Cannot restyle FlatButton width/maxWidth CSS attribute in "style" property within FlatButtons after upgrading to MUI v.0.15.0. Tried looking into code to find source that would trigger it in changes after 14.4, but not familiar enough.

Steps to reproduce

Create a FlatButton, give style width property of anything, observe that new container is created and button component still contains 88px widths.

Versions

  • Material-UI: 0.15.0
  • React: 15.0.2
  • Browser: Chrome v 50.0.2661.102 m

rob2d avatar May 23 '16 19:05 rob2d

Tested and working in 0.15.0 and HEAD:

    <FlatButton label="Default" style={{width: '200px'}}/>

image

mbrookes avatar May 24 '16 21:05 mbrookes

Sorry, I actually meant the RaisedButton!

rob2d avatar May 25 '16 18:05 rob2d

setting width is not working in 0.15.2 for FlatButtons. @mbrookes Is it still working for you?

Edit: I am trying to make the width smaller.

dalexander01 avatar Aug 02 '16 21:08 dalexander01

FYI, to resolve this I had to modify minWidth, then modify the width.

dalexander01 avatar Aug 03 '16 19:08 dalexander01