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:
@@ -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