22e6394d47
* Add `Fixed` and `Repeated` background controls to `Featured Product` * Add `Repeated background` feature when the toggle is activated * Extract `get_image_url` function * Add the styles for rendering the repeated image on the frontend * Add `hasParallax` and `isRepeated` to the `block.json` file * Adjust styles * Remove unused function, improve phpdoc * Use alt and product name Fix error rebasing master * Hide alt if isRepeat is true When isRepeated is true, the image is a background so it does not make sense to have an alt attribute. * Add `Fixed image` behaviour * Remove unnecessary single quotes * Remove duplicated const due to rebasing * Fix focal point getting lost after enabling Fixed bg * Fix duotone for fixed and repeated images * Fix duotone for fixed and repeated images on the front end * Don't allow alt if the image is a bg not an img element |
||
---|---|---|
.. | ||
block.js | ||
block.json | ||
edit.tsx | ||
editor.scss | ||
example.js | ||
index.tsx | ||
style.scss | ||
utils.js |