mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[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:
@@ -10,22 +10,10 @@
|
||||
<xpath expr="//img" position="attributes">
|
||||
<attribute name="class" remove="rounded" separator=" "/>
|
||||
</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 -->
|
||||
<xpath expr="(//img)[2]" position="attributes">
|
||||
<attribute name="class" remove="rounded" separator=" "/>
|
||||
</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>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -59,7 +59,6 @@
|
||||
'views/snippets/s_image_punchy.xml',
|
||||
'views/snippets/s_striped_center_top.xml',
|
||||
'views/snippets/s_company_team_card.xml',
|
||||
'views/snippets/s_timeline_images.xml',
|
||||
'views/snippets/s_image_title.xml',
|
||||
'views/snippets/s_key_images.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">
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user