Page 1 of 1

Themeable button different in breakpoints

Posted: Thu Nov 02, 2023 9:21 pm
by gramae
Hi
I am using themeable buttons on several projects, but when I use <br> to achieve 2 line text, although the text is correct on the Default view,
on all other breakpoints, the text is spaced too far apart vertically to be useful. Using Google to inspect, it appears that in all breakpoints apart from default, a 43px line height is inserted. Has anyone found a solution to this?
Thanks

Re: Themeable button different in breakpoints

Posted: Fri Nov 03, 2023 12:01 am
by crispy68
Either open up a html code box or add to the page html set between the <head> tags and add the following:

Code: Select all

<style>
#wb_ThemeableButton1 .ui-button{line-height:inherit;}
</style>
Change ID "ThemeableButton1" in code above to match the ID of your button.

Re: Themeable button different in breakpoints

Posted: Fri Nov 03, 2023 1:10 am
by gramae
Hi
Thanks, works perfectly.