Files
design-themes/theme_notes/views/snippets/s_image_gallery.xml
T
Soukéina Bojabza b46b356722 [FIX] theme_notes, theme_odoo_experts: fix "Image Gallery" arrows class
Commit [1] adapted the "Image Gallery" new design for the different
themes. In the `notes` and `odoo_experts` themes, the `s_image_gallery_
indicators_arrows_boxed` class was added, in order to have squared
arrows. However, this class does not exist, as the correct one is
`s_image_gallery_arrows_boxed`. This made the arrows stay as the default
ones in these themes.

Moreover, the default arrow class `s_image_gallery_arrows_default` was
not removed in the xpath, making the two classes coexist.

This commit fixes these class issues.

[1]: https://github.com/odoo/design-themes/commit/f66833de41f757c65ecf660f7bbc033b6dc64d6a

Related to task-3654328

closes odoo/design-themes#909

Related: odoo/odoo#180238
Signed-off-by: Colin Louis (loco) <loco@odoo.com>
2024-09-19 11:12:03 +00:00

19 lines
586 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_image_gallery" inherit_id="website.s_image_gallery">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="s_image_gallery_arrows_boxed" remove="s_image_gallery_arrows_default" separator=" "/>
</xpath>
</template>
<template id="s_images_wall" inherit_id="website.s_images_wall">
<!-- First image -->
<xpath expr="//img" position="attributes">
<attribute name="src">/web/image/website.library_image_19</attribute>
</xpath>
</template>
</odoo>