-
-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUGFIX: Prevent override of height for icons #3914
base: 8.4
Are you sure you want to change the base?
Conversation
The icons have multiple classes. From Font Awesome, we obtain the custom replacement class neos-svg-inline—fa, which sets a height of 1rem. However, we define the selectBoxHeaderWithSearchInput__icon class and set the height to 40px via a variable. The issue arises because the order in which these classes are applied determines the winning height. In Neos 8.4, the 40px height prevails, while in Neos 9.0, the 1rem height takes precedence. Consequently, the icons appear misaligned. To address this issue, we implement an adjustment that ensures that when an element possesses both of these classes, the height of 40px from our custom class prevails. Related: neos#3882
With the Upgrade in #3801 some Icons were misaligned. |
The acceptance tests for Firefox seem to be a bit wonky at the moment. |
Thanks for fixing this And i tested it and the override works ... thanks! Now im wondering why this change is targeting 8.4 when the bug only appears in 9.0?
In Neos 8.4 the class is indeed ordered differently in the build output:
Instead of
Also i noticed that the "width:1em" part is new with the font awesome upgrade too and wonder how that comes into play. overall its pretty mean to have the styles somehow wind up in a different order than expected and i also expect that explains: #3882 and #3861 |
Hi @mhsdesign the So it is more prevention to make clear that our class will win :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested it out locally and looks fine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cannot reproduce as previously mentioned by Marc, but ok 👍
The icons have multiple classes. From Font Awesome, we obtain the custom replacement class neos-svg-inline—fa, which sets a height of 1rem. However, we define the selectBoxHeaderWithSearchInput__icon class and set the height to 40px via a variable. The issue arises because the order in which these classes are applied determines the winning height. In Neos 8.4, the 40px height prevails, while in Neos 9.0, the 1rem height takes precedence. Consequently, the icons appear misaligned.
To address this issue, we implement an adjustment that ensures that when an element possesses both of these classes, the height of 40px from our custom class prevails.
Related: #3882