[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
@@ -6,20 +6,6 @@
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc o_cc5" separator=" "/>
</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>
</odoo>