Pro 6.2.x - Icon size and $el styles overridden by default styling

Working with the Icon element, setting the height and width in the element settings is being overridden by the default styling of the .x-icon class.

On the front-end, the styles are being applied, and when the editor area is reloaded, the styles are correctly applied, however reverting these back to default and setting them again leads to them being overridden again by the default styles.

I’m not entirely sure I see what you mean, or can’t recreate. Setting width, height, and font size didn’t seem to have any issues. Reverting them back to default as in “auto”? Which stack is this? Would also check if it’s a caching thing, I’ve seen certain plugins rearrange styles.

Hmm yes, I thought I was able to recreate it fairly well, but coming back to it now and it’s no longer happening. It was a fresh install and left with the default integrity stack, with some plugins, notably SG Optimizer, which may have been messing with style order through its minification process. But anyway, all seems okay now! I’ll keep an eye on if it crops up again, and in what circumstances.

Cheers as always!

1 Like