I want to override lib/web/mage/gallery/gallery.less
and some module files in
lib/web/mage/gallery/module/*.less
I need to override them because I want to change the style of product gallery images.
How to override or Are there any other way to "settle the question"?
Best Answer
We can override the less file
lib
in our custom theme. Put this file underweb
folder:and add
mage/gallery/gallery
inPROJECT/dev/tools/grunt/configs/themes.js
(orPROJECT/dev/tools/grunt/configs/local-themes/themes.js
for magento 2.2) to make grunt compiling it as well.