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

[Raised Button][Flat Button] label is left aligned when linkButton is true

Open shotolab opened this issue 10 years ago • 3 comments

If the width of a button is expanded beyond its natural width for a given label, the text will left align when linkButton is true. This applies to Raised & Flat Buttons. Confirmed in version 0.14.4.

shotolab avatar Feb 24 '16 15:02 shotolab

I can fix this problem by applying the following styles to the span that contains the button label text:

display: block text-align: center

Any preliminary thoughts on what changing the display type might break?

shotolab avatar Feb 24 '16 16:02 shotolab

Autoclosed by #3479. Opening pending #3456.

mbrookes avatar Mar 01 '16 12:03 mbrookes

Closed by #3529

nathanmarks avatar Mar 01 '16 12:03 nathanmarks