From abd5ea645b92958d9364559fe3e2d6f3a2303db7 Mon Sep 17 00:00:00 2001 From: "Mathieu (mano)" Date: Fri, 9 Dec 2022 10:46:15 +0000 Subject: [PATCH] [FIX] website_sale: fix wrong ribbon text color Since Bootstrap 5, bg- classes behave differently. On the website e-commerce shop the ribbon for the states "Sale, Sold out, Out of stock, New!" still uses bg- classes therefore having the wrong text color by default, making it difficult to read. This commit fixes the default text color by using new bootstrap 5 class text-bg-* instead of bg-* task-3096035 closes odoo/odoo#118051 X-original-commit: e6ecb4f72e9610bd5e3f81264c8278fbb7a6d5a3 Signed-off-by: Antoine Vandevenne (anv) --- addons/website_sale/data/data.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/website_sale/data/data.xml b/addons/website_sale/data/data.xml index 256a6daefdb..10ef714e464 100644 --- a/addons/website_sale/data/data.xml +++ b/addons/website_sale/data/data.xml @@ -25,22 +25,22 @@ Sale - bg-success o_ribbon_left + text-bg-success o_ribbon_left Sold out - bg-danger o_ribbon_left + text-bg-danger o_ribbon_left Out of stock - bg-warning o_ribbon_left + text-bg-warning o_ribbon_left New! - bg-primary o_ribbon_left + text-bg-primary o_ribbon_left