[FIX] theme_*: adapt xpath for s_timeline(_images, _list) changes

*: theme_artists, theme_buzzy, theme_nano

Before, the timeline (*) dots were invisible when using preset 4
because they shared the same color as the background (`text-o-color-1`
on `o-color-1` background).

The fix in the relative PR implements a solution that ensures dots are
always visible by using button primary colors for all presets.

Thus, this commit adapts xpath to ensure compatibility with the changes.

task-4922302

closes odoo/design-themes#1126

Related: odoo/odoo#221505
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
Xavier Luyckx (xlu)
2025-08-04 09:54:13 +02:00
parent c1d077604e
commit d9a15eaee5
4 changed files with 0 additions and 42 deletions
@@ -10,22 +10,10 @@
<xpath expr="//img" position="attributes"> <xpath expr="//img" position="attributes">
<attribute name="class" remove="rounded" separator=" "/> <attribute name="class" remove="rounded" separator=" "/>
</xpath> </xpath>
<xpath expr="//span[hasclass('o_dot')]" position="attributes">
<attribute name="class" add="text-o-color-4" remove="text-o-color-1" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('o_dot_line')]" position="attributes">
<attribute name="style">border-color: var(--o-color-1) !important;</attribute>
</xpath>
<!-- Milestone #2 --> <!-- Milestone #2 -->
<xpath expr="(//img)[2]" position="attributes"> <xpath expr="(//img)[2]" position="attributes">
<attribute name="class" remove="rounded" separator=" "/> <attribute name="class" remove="rounded" separator=" "/>
</xpath> </xpath>
<xpath expr="(//span[hasclass('o_dot')])[2]" position="attributes">
<attribute name="class" add="text-o-color-4" remove="text-o-color-1" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_dot_line')])[2]" position="attributes">
<attribute name="style">border-color: var(--o-color-1) !important;</attribute>
</xpath>
</template> </template>
</odoo> </odoo>
-1
View File
@@ -59,7 +59,6 @@
'views/snippets/s_image_punchy.xml', 'views/snippets/s_image_punchy.xml',
'views/snippets/s_striped_center_top.xml', 'views/snippets/s_striped_center_top.xml',
'views/snippets/s_company_team_card.xml', 'views/snippets/s_company_team_card.xml',
'views/snippets/s_timeline_images.xml',
'views/snippets/s_image_title.xml', 'views/snippets/s_image_title.xml',
'views/snippets/s_key_images.xml', 'views/snippets/s_key_images.xml',
'views/snippets/s_big_number.xml', 'views/snippets/s_big_number.xml',
@@ -1,15 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_timeline_images" inherit_id="website.s_timeline_images">
<!-- Milestone #1-->
<xpath expr="//span[hasclass('o_dot')]" position="attributes">
<attribute name="class" add="text-o-color-2" remove="text-o-color-1" separator=" "/>
</xpath>
<!-- Milestone #2 -->
<xpath expr="(//span[hasclass('o_dot')])[2]" position="attributes">
<attribute name="class" add="text-o-color-2" remove="text-o-color-1" separator=" "/>
</xpath>
</template>
</odoo>
@@ -6,20 +6,6 @@
<xpath expr="//section" position="attributes"> <xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc o_cc5" separator=" "/> <attribute name="class" add="o_cc o_cc5" separator=" "/>
</xpath> </xpath>
<!-- Milestone #1-->
<xpath expr="//span[hasclass('o_dot')]" position="attributes">
<attribute name="class" add="text-o-color-4" remove="text-o-color-1" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('o_dot_line')]" position="attributes">
<attribute name="style">border-color: var(--o-color-1) !important;</attribute>
</xpath>
<!-- Milestone #2 -->
<xpath expr="(//span[hasclass('o_dot')])[2]" position="attributes">
<attribute name="class" add="text-o-color-4" remove="text-o-color-1" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_dot_line')])[2]" position="attributes">
<attribute name="style">border-color: var(--o-color-1) !important;</attribute>
</xpath>
</template> </template>
</odoo> </odoo>