From 3e7e0e4d81026c0f00a4516b3a745fed791c0d37 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Fri, 13 Jan 2023 09:26:32 +0100 Subject: [PATCH] Instead of adding inline style, create a CSS rule --- app/views/spree/shared/_line_item_name.html.haml | 2 +- app/webpacker/css/darkswarm/split-checkout.scss | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/spree/shared/_line_item_name.html.haml b/app/views/spree/shared/_line_item_name.html.haml index 2139532c23..12a32772a4 100644 --- a/app/views/spree/shared/_line_item_name.html.haml +++ b/app/views/spree/shared/_line_item_name.html.haml @@ -1,4 +1,4 @@ -%h5.inline-header{ style: "background-color: transparent" } +%h5.inline-header = "#{raw(line_item.product.name)}" - unless line_item.product.name.include? line_item.name_to_display %span= "- #{raw(line_item.name_to_display)}" diff --git a/app/webpacker/css/darkswarm/split-checkout.scss b/app/webpacker/css/darkswarm/split-checkout.scss index 8c5b8484e3..97622f7bb5 100644 --- a/app/webpacker/css/darkswarm/split-checkout.scss +++ b/app/webpacker/css/darkswarm/split-checkout.scss @@ -382,6 +382,10 @@ #line-items { display: block; overflow-x: auto; + + h5 { + background-color: transparent; + } } .two-columns-inputs {