Closed lucspe closed 10 months ago
This cannot be fixed without increasing specificity of GenerateBlocks CSS. Which we would not do as a blanket change.
Instead we will look to address this issue in GB Pro Global Styles where the style selector string could be specified.
Description
When setting height and width for a GB image block, CSS is added targeting a class associated with that image, for example:
However, when such image is displayed in a WooCommerce single product page (for example using a block element), it is overriden by WooCommerce own CSS, specifically by this rule (from woocommerce-layout.css):
I have tested this with latest version of WooCommerce (7.8.1).
Steps to reproduce
Expected behavior
That CSS rule set by GB for the image would be applied.
Actual behavior
CSS rule set by WooCommerce (with height: auto) is applied instead to image height.