From 177a0ccc3961fab92a97c1385eff01c0d533fdae Mon Sep 17 00:00:00 2001 From: Tyler Alsbury <60230011+tyleralsbury@users.noreply.github.com> Date: Thu, 12 Sep 2024 13:05:29 -0400 Subject: [PATCH 1/2] Release 15.1.0 (#3595) * Release notes + version bump * Fixed arrow in announcement bar and caret in product variant dropdown * Fixed announcement bar with multiple blocks * Adjustment to variant picker caret * Fixed multicolumn and mega menu * Updated release note --- assets/section-main-product.css | 4 ++++ config/settings_schema.json | 2 +- release-notes.md | 8 +++----- sections/announcement-bar.liquid | 8 ++------ sections/multicolumn.liquid | 4 +++- snippets/header-mega-menu.liquid | 4 +--- 6 files changed, 14 insertions(+), 16 deletions(-) diff --git a/assets/section-main-product.css b/assets/section-main-product.css index d50877fc836..c9dfc5825a7 100644 --- a/assets/section-main-product.css +++ b/assets/section-main-product.css @@ -185,6 +185,10 @@ product-info { max-width: 100%; } +.product-form__input .svg-wrapper { + right: 1.5rem; +} + .product-form__submit { margin-bottom: 1rem; } diff --git a/config/settings_schema.json b/config/settings_schema.json index 8418a6eefeb..b18edec9f1b 100644 --- a/config/settings_schema.json +++ b/config/settings_schema.json @@ -2,7 +2,7 @@ { "name": "theme_info", "theme_name": "Dawn", - "theme_version": "15.0.1", + "theme_version": "15.1.0", "theme_author": "Shopify", "theme_documentation_url": "https://help.shopify.com/manual/online-store/themes", "theme_support_url": "https://support.shopify.com/" diff --git a/release-notes.md b/release-notes.md index 0a87e004198..8fdf66f0c22 100644 --- a/release-notes.md +++ b/release-notes.md @@ -1,6 +1,4 @@ -Dawn 15.0.1 introduces a few bug fixes. +Dawn 15.1.0 changes the way SVGs are rendered ### Fixes and improvements -- Fix issues where when the header section is hidden, some functionalities were broken. -- Update cart errors to be output as a string rather than a HTML element. -- Escape variant option names so that when an option includes quotation marks it doesn’t cause undesired effects. -- Fix placeholder product cards that were not showing a default price and make the check more robust. +- Moves SVGs from Liquid snippets to `.svg` files in the `/assets` folder +- Uses new `inline_asset_content` Liquid filter to render SVGs diff --git a/sections/announcement-bar.liquid b/sections/announcement-bar.liquid index d51fb296b9e..9dc470715ed 100644 --- a/sections/announcement-bar.liquid +++ b/sections/announcement-bar.liquid @@ -43,9 +43,7 @@

{{ section.blocks.first.settings.text | escape }} {%- if section.blocks.first.settings.link != blank -%} - - {{- 'icon-arrow.svg' | inline_asset_content -}} - + {{- 'icon-arrow.svg' | inline_asset_content -}} {%- endif -%}

{%- if section.blocks.first.settings.link != blank -%} @@ -106,9 +104,7 @@

{{ block.settings.text | escape }} {%- if block.settings.link != blank -%} - - {{- 'icon-arrow.svg' | inline_asset_content -}} - + {{- 'icon-arrow.svg' | inline_asset_content -}} {%- endif -%}

{%- if block.settings.link != blank -%} diff --git a/sections/multicolumn.liquid b/sections/multicolumn.liquid index 9b62c72f462..387962ffca0 100644 --- a/sections/multicolumn.liquid +++ b/sections/multicolumn.liquid @@ -135,7 +135,9 @@ {% endif %} > {{- block.settings.link_label | escape -}} - <span class="icon-wrap"> {{ 'icon-arrow.svg' | inline_asset_content }} +  {{ 'icon-arrow.svg' | inline_asset_content }} {%- endif -%} diff --git a/snippets/header-mega-menu.liquid b/snippets/header-mega-menu.liquid index 8165ccdcb17..59c7d1a850a 100644 --- a/snippets/header-mega-menu.liquid +++ b/snippets/header-mega-menu.liquid @@ -23,9 +23,7 @@ > {{- link.title | escape -}} - - {{- 'icon-caret.svg' | inline_asset_content -}} - + {{- 'icon-caret.svg' | inline_asset_content -}}
Date: Thu, 12 Sep 2024 16:54:19 -0400 Subject: [PATCH 2/2] Fixed modals sticking around for Featured Product whens section is removed in the editor (#3609) --- assets/global.js | 1 + assets/theme-editor.js | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/assets/global.js b/assets/global.js index ce13bf6514a..657227444f3 100644 --- a/assets/global.js +++ b/assets/global.js @@ -619,6 +619,7 @@ class ModalDialog extends HTMLElement { connectedCallback() { if (this.moved) return; this.moved = true; + this.dataset.section = this.closest('.shopify-section').id.replace('shopify-section-', ''); document.body.appendChild(this); } diff --git a/assets/theme-editor.js b/assets/theme-editor.js index 557c908a3b3..62f96c073e8 100644 --- a/assets/theme-editor.js +++ b/assets/theme-editor.js @@ -36,6 +36,12 @@ document.addEventListener('shopify:section:load', () => { } }); +document.addEventListener('shopify:section:unload', (event) => { + document.querySelectorAll(`[data-section="${event.detail.sectionId}"]`).forEach((element) => { + element.remove(); + }); +}); + document.addEventListener('shopify:section:reorder', () => hideProductModal()); document.addEventListener('shopify:section:select', () => hideProductModal());