Skip to content

Commit 27966e6

Browse files
hokolomopoLucasLefevre
authored andcommitted
[FIX] cf: fix background color of conditional formatting preview
The color of the background of the conditional formatting preview was not correct because of a wrongly placed `bg-white`. closes #7491 Task: 5343875 Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>
1 parent a95d9a4 commit 27966e6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/side_panel/conditional_formatting/cf_preview/cf_preview.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<t t-else="">
2525
<div
2626
t-att-style="getPreviewImageStyle(cf.rule)"
27-
class="o-cf-preview-icon d-flex justify-content-around align-items-center me-2 bg-white border">
27+
class="o-cf-preview-icon d-flex justify-content-around align-items-center me-2 border">
2828
123
2929
</div>
3030
</t>

tests/conditional_formatting/__snapshots__/conditional_formatting_panel_component.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ exports[`UI of conditional formats Conditional format list simple snapshot 1`] =
5454
</div>
5555
5656
<div
57-
class="o-cf-preview-icon d-flex justify-content-around align-items-center me-2 bg-white border"
57+
class="o-cf-preview-icon d-flex justify-content-around align-items-center me-2 border"
5858
style="background:#FF0000; "
5959
>
6060
123
@@ -141,7 +141,7 @@ exports[`UI of conditional formats Conditional format list simple snapshot 1`] =
141141
</div>
142142
143143
<div
144-
class="o-cf-preview-icon d-flex justify-content-around align-items-center me-2 bg-white border"
144+
class="o-cf-preview-icon d-flex justify-content-around align-items-center me-2 border"
145145
style="background-image: linear-gradient(to right, #FF00FF, #123456)"
146146
>
147147
123

0 commit comments

Comments
 (0)