diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c26074ccb..08ff6d063 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,14 +27,35 @@ jobs: - name: Build assets run: npm run build - - name: Remove dependencies - run: rm node_modules/ .github/ .git/ -rf + - name: Remove unuseful data + run: | + rm .git/ -rf + rm .github/ -rf + rm .storybook/ -rf + rm node_modules/ -rf + rm src/ -rf + rm stories/ -rf + rm types/ -rf + rm webpack/ -rf + rm .editorconfig + rm .eslintignore + rm .eslintrc.js + rm .gitignore + rm .stylelintignore + rm .stylelintrc + rm babel.config.js + rm jest.config.js + rm package-lock.json + rm package.json + rm postcss.config.js + rm tsconfig.json + rm webpack.config.js - name: Create & Upload artifact uses: actions/upload-artifact@v1 with: name: ${{ github.event.repository.name }} - path: ../ + path: ./ update_release_draft: runs-on: ubuntu-latest needs: [deploy] diff --git a/src/js/pages/checkout.ts b/src/js/pages/checkout.ts index 839e09b35..57918f547 100644 --- a/src/js/pages/checkout.ts +++ b/src/js/pages/checkout.ts @@ -29,7 +29,7 @@ const initCheckout = () => { responsiveStep?.classList.remove('d-none'); } - content.classList.add('js-current-step'); + content.classList.add('js-current-step', 'step--current'); }; actionButtons.forEach((button) => { diff --git a/src/js/theme.ts b/src/js/theme.ts index 5ff971f41..b7271d336 100644 --- a/src/js/theme.ts +++ b/src/js/theme.ts @@ -32,12 +32,6 @@ initEmitter(); $(() => { const {prestashop, Theme: {events}} = window; - // @TODO: Fix this on core.js side inside a major version of PrestaShop instead of minor - // For reference: https://github.com/PrestaShop/hummingbird/pull/418#discussion_r1061938669 - document.querySelectorAll('[name="token"]').forEach((el) => { - el.value = prestashop.static_token; - }); - initProductBehavior(); initQuickview(); initCheckout(); diff --git a/templates/checkout/_partials/steps/checkout-step.tpl b/templates/checkout/_partials/steps/checkout-step.tpl index f9d74fbe4..4df32164a 100644 --- a/templates/checkout/_partials/steps/checkout-step.tpl +++ b/templates/checkout/_partials/steps/checkout-step.tpl @@ -12,8 +12,10 @@ 'step--reachable' => $step_is_reachable, 'step--complete' => $step_is_complete && !$step_is_current, 'js-current-step' => $step_is_current, - 'active' => $step_is_current + 'active' => $step_is_current, + 'show' => $step_is_current ]|classnames} mb-5" + role = "tabpanel" >

diff --git a/templates/checkout/_partials/steps/shipping.tpl b/templates/checkout/_partials/steps/shipping.tpl index af263b022..36a9fbaec 100644 --- a/templates/checkout/_partials/steps/shipping.tpl +++ b/templates/checkout/_partials/steps/shipping.tpl @@ -34,7 +34,7 @@
{if $carrier.logo} {/if} diff --git a/templates/checkout/checkout-steps.tpl b/templates/checkout/checkout-steps.tpl index df1891e65..64a62342c 100644 --- a/templates/checkout/checkout-steps.tpl +++ b/templates/checkout/checkout-steps.tpl @@ -10,7 +10,7 @@ {block name='checkout_steps'}
-