Page 1 of 1
Themeable button query
Posted: Sat Sep 11, 2021 10:13 am
by alan_sh
I'm using a Themeable button with an icon to link to another page - because it looks nice.
However, when I reduce the page width, there is a point at which the icon starts to overwrite the text (name of the button). Is there any way round this? If not, can I request a feature where the icon disappears below a certain width?
Cheers
Alan
Re: Themeable button query
Posted: Sat Sep 11, 2021 10:16 am
by Pablo
I am not aware of any issues with the Themeable button.
But if you think you have found a problem, then please share a demo project so I can see all your settings.
Re: Themeable button query
Posted: Sat Sep 11, 2021 12:08 pm
by alan_sh
I've sent you an email as it's WB17
Re: Themeable button query
Posted: Sun Sep 12, 2021 9:32 am
by alan_sh
I fixed it by changing the underlying layer grid from 2-8-2 to 3-6-3. The buttons were in the two outer parts and it looks like they didn't have enough room to adjust properly.
Re: Themeable button query
Posted: Sun Sep 12, 2021 4:19 pm
by alan_sh
Pablo, is this a bug or intended behaviour? If the layout grid is 3-6-3 with the buttons in the outside grids, it works OK when I reduce the size. If I change it to 2-8-2, then as I reduce it, the icon starts to overlay the text in each button.
Alan
Re: Themeable button query
Posted: Sun Sep 12, 2021 5:08 pm
by Pablo
This is not a bug. This is standard HTML behavior.
What else did you expect to happen?
Re: Themeable button query
Posted: Sun Sep 12, 2021 5:17 pm
by alan_sh
I expect that the behaviour of the button (text and icon) to be the same as the window gets reduced in width, no matter what the underlying grid size is.
Alan
Re: Themeable button query
Posted: Sun Sep 12, 2021 5:33 pm
by Pablo
The grid size determines the size of the button in percentages, the browser controls the size of the element relative to the size on the browset window.
Note that I did not implement this logic. This functionality is implemented in the browser.
If you use flexbox than the logic is slightly different. Flexbox uses different calculations to determine the size based on the of element and content.
If you think there is a problem in WWB then please try to be more specific. Because unless I misunderstood you, for me this behavior is logical.
Re: Themeable button query
Posted: Sun Sep 12, 2021 7:19 pm
by alan_sh
I don't know where the problem lies. I will do more experimentation.
This is not a big issue. I have fixed it for my new site.
Thanks for listening
Alan
Re: Themeable button query
Posted: Sat Oct 05, 2024 5:39 pm
by Base12
alan_sh wrote: ↑Sat Sep 11, 2021 10:13 am
I'm using a Themeable button with an icon to link to another page - because it looks nice.
However, when I reduce the page width, there is a point at which the icon starts to overwrite the text (name of the button). Is there any way round this? If not, can I request a feature where the icon disappears below a certain width?
Cheers
Alan
I just ran into this issue and came here to see if there was a solution.
I ended up adding extra padding in the button to compensate...
Note that the icon is set to 'left' as opposed to 'inline left' in the settings.
Maybe the 'Icon Offset' should have both left and right settings?
Re: Themeable button query
Posted: Sat Oct 05, 2024 6:43 pm
by wwonderfull
The icon can be set both on left and right-side using icon position settings and offset is calculated based on that and you can even use negative values to move it more right or more left if needed.