[Silk UI Framework] .Button Load - Only working for Links

[Silk UI Framework] .Button Load - Only working for Links

  
Forge Component
(45)
Published on 10 May by OutSystems Labs
45 votes
Published on 10 May by OutSystems Labs
Hi all,
I'm trying to implement the load class on buttons to show an animation whilst executing and to prevent the button being clicked twice.
Unfortunately I can only get this to work for a link. If I add the styles Button & Load to a link the behavious is as expected and as visible on the silk UI sample pages. If I use a button this does not occur. Looking at the code it looks like it targets a.button which may explain it but I thought it was supposed to work on buttons.

Any clues as to what I'm doing wrong?

Cheers

Steve
Solution
Hello Steve,

First of all, sorry for the late reply.

Actually, you are not doing anything wrong. That functionality only works with Links, and the reason why is that you cannot add the loader icon inside a button.

I'm adding this to our backlog, so that we can revise the Silk website information to explain this situation.

Best Regards,
Samuel Jesus
Solution
Thanks for the info - its not that clear on the site as you mention as it states "use on buttons and links". But great to know.

Cheers

Steve