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.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Update mobile nav to work with labels.
Matthew Kennedye704be89010f
diff --git a/core/config/locales/en.yml b/core/config/locales/en.ymlindex bfe54d8bfd..eb232995bd 100644--- a/core/config/locales/en.yml+++ b/core/config/locales/en.yml@@ -605,7 +605,7 @@ en:unique_code_store_error: 'The code: %{code} is already used for Menu: %{menus}, make sure your unique code is unique within the store it is being used for.'subtitle: Subtitleurl_info: 'The URL field can link to an external website using <b>https://example.com</b>, link to an otherwise unreachable internal path using <b>/policies/privacy</b>,- lanch an email client using <b>mailto:[email protected]</b> or used to create a clickable phone number with <b>tel:123456789</b>'+ launch an email client using <b>mailto:[email protected]</b> or used to create a clickable phone number with <b>tel:123456789</b>'seach_for_a_product: Search for a Productseach_for_a_taxon: Search for a Taxonsettings: Settingsdiff --git a/frontend/app/views/spree/shared/_mobile_navigation.html.erb b/frontend/app/views/spree/shared/_mobile_navigation.html.erbindex ae7facb43c..3a76b0c573 100644--- a/frontend/app/views/spree/shared/_mobile_navigation.html.erb+++ b/frontend/app/views/spree/shared/_mobile_navigation.html.erb@@ -20,7 +20,12 @@<ul class="list-unstyled position-relative h-100 mobile-navigation-list"><% spree_menu.children.each do |parent| %><li class="d-flex justify-content-between align-items-center mobile-navigation-list-item">- <%= link_to parent.name, spree_localized_item_link(parent), class: 'w-75' %>+ <% if parent.item_type == "Container" %>+ <%= content_tag :span, parent.name %>+ <% else %>+ <%= link_to parent.name, spree_localized_item_link(parent), class: 'w-75' %>+ <% end %>+<% if parent.children.present? %><a class="w-25 text-right mobile-navigation-category-link" data-category="<%= parent.name.parameterize %>" href="#" aria-label="<%= Spree.t('go_to_category') %>"><%= icon(name: 'arrow-right',