Tagged: !important, Elementor, preferences
- This topic has 6 replies, 2 voices, and was last updated 5 years, 3 months ago by
Sebastian.
Author | Posts |
---|---|
ddenev
February 18, 2018 at 1:57 pm
|
Hi Sebastian, There one very strange problem that I noticed recently. Unfortunately, it is hard to reproduce (I cannot find the pattern) but I’ll try to explain. I have 2 selectors (let’s call it A and B) for which “width” is set with “important” on (via the “i” icon to the right of the control). Now, as I work with Microthemer (nothing related to A and B), sometimes the “important” of the “width” for A and B gets turned off. This happened several times while I was working the last 3 days. The thing is that I notice the change too late to find a connection b/w what I was doing and the change. Today I spend 30 minutes trying to reproduce it but couldn’t. I don’t know if this is a bug or if I am doing something wrong but I guess it would be nice for you to know that – maybe it will ring a bell 🙂 Thank you in advance. |
ddenev
February 18, 2018 at 2:49 pm
|
Update: it happened again! The closest I have come to reproducing it is: this happens (not every time though) when I create e new selector – I am using the Target button and clicking on an element. The element I am clicking on has nothing to do with the affected elements A and B. Note: As a workaround in this particular case I switched to using specificity but there are cases where I am forced to use “important” (e.g. it is used in the provider’s CSS and I need to override it) |
ddenev
February 18, 2018 at 4:22 pm
|
Another observation: I just needed to fix a “margin: auto!important” from the Elementor’s stylesheet and set my “margin: 0!important” on a selector. This was reset after several refreshes in Microthemer and the “!important” was back to off 🙁 Seems more and more like a bug |
Sebastian
February 18, 2018 at 8:24 pm
|
Hey, Thanks for providing such detailed reporting on this. It definitely sounds like a bug. I will troubleshoot it first thing Monday morning. In the meantime, as a quick fix you could enter !important manually into the margin fields along with the margin value. I’ll update you when I’ve released a fix. Cheers, |
Sebastian
February 19, 2018 at 11:51 am
|
Hey, I’ve just released version 5.1.6.0 which fixes this issue. I’m really sorry for the inconvenience this bug caused. And thanks again for providing such a detailed description of the issue, it really helped me replicate then address the problem. Cheers, |
ddenev
February 19, 2018 at 12:49 pm
|
Hey, Sebastian Thank you so much for the swift fix! I will pay attention in the next days and will let you know in case of any issues. Best regards, |
Sebastian
February 19, 2018 at 3:52 pm
|
Great, thanks. |