The file I use to override these styles: app/design/frontend/Vendor/ChildTheme/web/css/source/_module.less as per M2 documentation.

I tracked that it applies my modified styles, but then goes and puts the original on top, overriding my customisation.

Simple solution might be setting border: 0; but that's not what I want to achieve here. I need that rule removed.


To track it I added properties content: "Theme" and content: "Vendor" indicators. As you can see, the one from theme has border rule removed, but it gets overridden by rules from vendor.

1 Answer 1


I have a solution. I was adding it as general theme styling, It should have been app/design/frontend/Vendor/ChildTheme/Magento_Theme/web/css/source/_module.less

Now if some rule is removed - it stays removed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.