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.

Refine close submenu button positioning.

Matthew Kennedyc6b07ad9c3e8
diff --git a/frontend/app/assets/stylesheets/spree/frontend/views/spree/shared/mobile_navigation.scss b/frontend/app/assets/stylesheets/spree/frontend/views/spree/shared/mobile_navigation.scss
index 8d1a246d1c..bd43b5c7fd 100644
--- a/frontend/app/assets/stylesheets/spree/frontend/views/spree/shared/mobile_navigation.scss
+++ b/frontend/app/assets/stylesheets/spree/frontend/views/spree/shared/mobile_navigation.scss
@@ -99,9 +99,6 @@
#mobile-navigation-back-button {
opacity: 0;
- padding-left: 17px;
- padding-right: 17px;
- margin-left: -17px;
transition: basic-transition(opacity);
appearance: none;
border: none;
diff --git a/frontend/app/views/spree/shared/_mobile_navigation.html.erb b/frontend/app/views/spree/shared/_mobile_navigation.html.erb
index e2bb81b6cf..31348e921d 100644
--- a/frontend/app/views/spree/shared/_mobile_navigation.html.erb
+++ b/frontend/app/views/spree/shared/_mobile_navigation.html.erb
@@ -2,12 +2,12 @@
<div class="position-fixed text-uppercase d-xl-none mobile-navigation" role="navigation" aria-label="<%= Spree.t('nav_bar.mobile') %>">
<div class="d-flex align-items-center header-spree" data-hook>
<div class="container-fluid header-spree-fluid">
- <div class="d-flex flex-row flex-nowrap align-items-center justify-content-between">
- <button id="mobile-navigation-back-button" aria-label="<%= Spree.t('nav_bar.go_to_previous_menu') %>">
+ <div class="d-flex align-items-center justify-content-between">
+ <button class="pl-0" id="mobile-navigation-back-button" aria-label="<%= Spree.t('nav_bar.go_to_previous_menu') %>">
<%= icon(name: 'arrow-right',
classes: 'd-inline spree-icon-arrow spree-icon-arrow-left',
- width: 17,
- height: 28) %>
+ width: 26,
+ height: 26) %>
</button>
<figure class="logo header-spree-fluid-logo" data-hook>
<%= logo %>