Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

[SD-1158] Show a humanized tooltip (#10784)

Agnieszka Jacekf74311622015
diff --git a/frontend/app/views/spree/products/_color_option_type.html.erb b/frontend/app/views/spree/products/_color_option_type.html.erb
index 9a0e83421d..05272b5cf3 100644
--- a/frontend/app/views/spree/products/_color_option_type.html.erb
+++ b/frontend/app/views/spree/products/_color_option_type.html.erb
@@ -9,7 +9,7 @@
<li>
<%= label_tag "variant_option_value_id_#{option_type[:id]}_#{option_value[:id]}",
class: "m-1 m-sm-2 m-md-1 color-select-label",
- title: option_value[:presentation],
+ title: option_value[:name]&.humanize,
data: { toggle: "tooltip", placement: "bottom" } do %>
<%= radio_button_tag "variant_option_value_id_#{option_type[:id]}",