Hello,
I've come across a bug with font icons on Button.
When switching between image icon and font icon iconSpacing setting is ignored on display. It's still in use when calculating for example text overflow but spacing is not visible.
I've found in code that with classic IMG there is margin-right added to IMG styles but with font icon there is no such settings added to SPAN tag.
_generateIconImgHTML method in Button.js ignores all imgParams when font icon is detected.
On the other side ToolStripButton uses separate table cell to icon and adds padding to this cell so it works fine.
Probably adding support to extraCSSText when font icon is detected would solve this issue.
I've also tested on latest nightly 14.1p 2025-12-31.
Best regards
I've come across a bug with font icons on Button.
When switching between image icon and font icon iconSpacing setting is ignored on display. It's still in use when calculating for example text overflow but spacing is not visible.
I've found in code that with classic IMG there is margin-right added to IMG styles but with font icon there is no such settings added to SPAN tag.
_generateIconImgHTML method in Button.js ignores all imgParams when font icon is detected.
On the other side ToolStripButton uses separate table cell to icon and adds padding to this cell so it works fine.
Probably adding support to extraCSSText when font icon is detected would solve this issue.
I've also tested on latest nightly 14.1p 2025-12-31.
Best regards
Comment