Removing incorrect less selector '.abs-cleafix', it has a typo + it i… #22184
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…s already used correctly in a different less file (_data-grid-header.less).
Description (*)
This was discovered by using a different less compiler then what Magento ships with.
There is a typo in the
_temp.lessfile where it says.abs-cleafixinstead of.abs-clearfixAfter some further research, it looks like the same extends is already correctly added in a different place to the same selector
.admin__data-grid-header-rowover here, so we don't need to fix the incorrect selector, but can just remove it.More details:
.abs_clearfixreferences the.lib-clearfix()mixin..lib-clearfix()mixin is defined over here..admin__data-grid-header-rowselector's::before&::afterpseudo-elements get the properties as defined by the.lib-clearfix()mixin. And this stays the case after removing the line in this PR since it's also being applied over here.Fixed Issues (if relevant)
None that I could find.
Manual testing scenarios (*)
npm install less@2.7.3node_modules/.bin/lessc --no-color var/view_preprocessed/pub/static/adminhtml/Magento/backend/en_US/css/styles.less | headextend ' .abs-cleafix' has no matches, with this fix that error is gone.admin__data-grid-header-rowclass, and look at their::before&::afterpseudo-elements.Contribution checklist (*)