Hello, I ran into an unpleasant problem in the form of css class priority.
I have 2 classes on the element:
header__icon
icon-text
In the adaptive version, I want to hide the block, I use header__icon styles, since I need to hide elements with this particular class, but the priority of the icon-text class interrupts display:none.
The solution to your problem is the order in which you add the classes. You let single classes compete against each other, which have the same specificity. So the order is crucial. Swap the order by adding icon-text first and then header__icon. This should work as expected.
Since these are custom classes, I don’t see how we can flatly counteract this.
I tried changing the order of classes on the element itself, but it didn’t help. Apparently, only creating from scratch will help, which is very inconvenient considering that there is already an adaptive and you will have to copy everything.
It would be possible to make it possible to drag classes in the list of all classes to set their order. It would be very helpful. Because, for example, in the code editor, I can just copy and paste from the bottom, but not in the constructor.