[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) <anv@odoo.com>
This commit is contained in:
@@ -25,22 +25,22 @@
|
||||
|
||||
<record id="website_sale.sale_ribbon" model="product.ribbon">
|
||||
<field name="html">Sale</field>
|
||||
<field name="html_class">bg-success o_ribbon_left</field>
|
||||
<field name="html_class">text-bg-success o_ribbon_left</field>
|
||||
</record>
|
||||
|
||||
<record id="website_sale.sold_out_ribbon" model="product.ribbon">
|
||||
<field name="html">Sold out</field>
|
||||
<field name="html_class">bg-danger o_ribbon_left</field>
|
||||
<field name="html_class">text-bg-danger o_ribbon_left</field>
|
||||
</record>
|
||||
|
||||
<record id="website_sale.out_of_stock_ribbon" model="product.ribbon">
|
||||
<field name="html">Out of stock</field>
|
||||
<field name="html_class">bg-warning o_ribbon_left</field>
|
||||
<field name="html_class">text-bg-warning o_ribbon_left</field>
|
||||
</record>
|
||||
|
||||
<record id="website_sale.new_ribbon" model="product.ribbon">
|
||||
<field name="html">New!</field>
|
||||
<field name="html_class">bg-primary o_ribbon_left</field>
|
||||
<field name="html_class">text-bg-primary o_ribbon_left</field>
|
||||
</record>
|
||||
|
||||
<record id="sales_team.salesteam_website_sales" model="crm.team">
|
||||
|
||||
Reference in New Issue
Block a user