hakimel / Ladda

Buttons with built-in loading indicators.

Home Page:http://lab.hakim.se/ladda/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

If you set custom padding, it will broke the button.

vladi160 opened this issue · comments

You can check and in your examples. If you set for the example padding: 14px 18px; to the expand-right it will be broken.

This isn't a bug - it's due to how CSS works. If you set padding on the element itself (for example, using the style attribute), then this has a higher precedence than the styles applied by the data-loading CSS selector from the ladda.css file, so it's padding stays static and is not being changed dynamically with Ladda.

Use utility classes to apply padding instead of using the style attribute.