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

Buttons dont align when one is a link button and the other is regular

Open sbberic opened this issue 10 years ago • 6 comments

When I put:

<RaisedButton label="Hello"/>
<RaisedButton label="World" linkButton={true}/>
screen shot 2016-01-05 at 3 30 53 pm

the none linked button has an extra space above it. but when I have:

<RaisedButton label="Hello" linkButton={true}/>
<RaisedButton label="World" linkButton={true}/>
screen shot 2016-01-05 at 3 32 35 pm

this seems to be caused by display: inline-block on the anchor element: with anchor display:inline-block screen shot 2016-01-05 at 3 34 23 pm without: screen shot 2016-01-05 at 3 34 38 pm

sbberic avatar Jan 05 '16 23:01 sbberic

Applying linkButton to a raised button with a width set in style also changes the button label to be left aligned. (0.14.4)

shotolab avatar Feb 23 '16 19:02 shotolab

That should be fixed on the master branch. Can someone confirm?

oliviertassinari avatar Feb 23 '16 19:02 oliviertassinari

The vertical alignment is fixed, but @shotolab is correct about the left alignment: image

@shotolab, I'm going to close this one, but can you please search for an existing issue for the left alignment propblem, and open a new if there isn't one already? Feel free to submit a PR - it should be a relatively easy one to pin down (famous last words! :smile: )

mbrookes avatar Feb 24 '16 00:02 mbrookes

Button left alignment issue #3456

shotolab avatar Feb 24 '16 16:02 shotolab

:+1:

mbrookes avatar Feb 24 '16 19:02 mbrookes

Do I understand this correctly that this bug should be fixed now? I've just updated to 0.15 and the link buttons are still not aligned. The symptoms are the same, applying display: inline !important on the anchor element fixes the issue.

tobice avatar Jun 02 '16 15:06 tobice