PolymerElements / paper-button

A button à la Material Design
https://www.webcomponents.org/element/PolymerElements/paper-button
138 stars 64 forks source link

[2.0-preview] button content is not center aligned #136

Closed cdata closed 7 years ago

cdata commented 7 years ago

image

keanulee commented 7 years ago

paper-button 2.0 adds the .paper-material class (which applies display: block through :host(.paper-material)), but paper-button relies on display: inline-flex (set by @apply --layout-inline on :host) to center content. Perhaps paper-material should not set the CSS display property.

https://github.com/PolymerElements/paper-button/commit/1895fb33eaa4748065b709dd8373d5b510c14931#diff-a266820d4466f8f0a52ce98f7e191d62R169

notwaldorf commented 7 years ago

Fixed in 73bf77e9ec05