From e8ea3b22aa0ea64fd24110a31dcff938e46182cf Mon Sep 17 00:00:00 2001 From: runrog Date: Tue, 9 Apr 2024 18:14:37 -0500 Subject: [PATCH] fix nav links z index stack when moving translate values --- src/droplets/navigation/themes/default/styles.less | 2 ++ src/tools/slide-checkout/plugin.js | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/droplets/navigation/themes/default/styles.less b/src/droplets/navigation/themes/default/styles.less index 53c42fe..e3b7401 100644 --- a/src/droplets/navigation/themes/default/styles.less +++ b/src/droplets/navigation/themes/default/styles.less @@ -124,8 +124,10 @@ color: @white; display: block; padding: 11px 14px; + position: relative; text-decoration: none; width: 100%; + z-index: 1; &:hover { background-color: fade(@black, 12%); diff --git a/src/tools/slide-checkout/plugin.js b/src/tools/slide-checkout/plugin.js index fca60f3..e1ec9f5 100644 --- a/src/tools/slide-checkout/plugin.js +++ b/src/tools/slide-checkout/plugin.js @@ -498,7 +498,7 @@ return items; }, getPreTaxTotal() { - const dollars = `${options.currency.symbol}${methods.preTaxTotal}`; + const dollars = `${options.currency.symbol}${Number(methods.preTaxTotal).toFixed(2)}`; const display = `${dollars} ${options.currency.type}`; $preTaxTotal.html(display); }, @@ -705,7 +705,7 @@ ${error}${optError}
- Total: ${options.currency.symbol}${itemTotal} + Total: ${options.currency.symbol}${Number(itemTotal).toFixed(2)}