From 06b4a8bc482760a60c9849d4de4eebebe7a1f28f Mon Sep 17 00:00:00 2001 From: cristian-ungureanu Date: Mon, 2 Oct 2023 15:31:36 +0300 Subject: [PATCH 1/3] fix: slider not working inside a flex container[#1750] --- package-lock.json | 2 +- src/blocks/blocks/slider/style.scss | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 934266edc..d4b0c83c8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,7 +6,7 @@ "packages": { "": { "name": "otter-blocks", - "version": "2.3.4", + "version": "2.4.0", "license": "GPL-2.0+", "dependencies": { "@wordpress/icons": "^9.32.0", diff --git a/src/blocks/blocks/slider/style.scss b/src/blocks/blocks/slider/style.scss index b442b6f3a..7bf0b6722 100644 --- a/src/blocks/blocks/slider/style.scss +++ b/src/blocks/blocks/slider/style.scss @@ -12,13 +12,14 @@ --width: auto; width: var( --width ); + display: grid; .glide__track { border: var( --border-width ) solid var( --border-color ); border-radius: var( --border-radius ); overflow: hidden; } - + .glide__slides { height: var( --height ); animation: load 4s 3; From 5d89296e890661f4a972b8d703c81f4cb81c2176 Mon Sep 17 00:00:00 2001 From: cristian-ungureanu Date: Mon, 2 Oct 2023 16:49:22 +0300 Subject: [PATCH 2/3] chore: revert changes on package-lock.json --- package-lock.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index d4b0c83c8..934266edc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,7 +6,7 @@ "packages": { "": { "name": "otter-blocks", - "version": "2.4.0", + "version": "2.3.4", "license": "GPL-2.0+", "dependencies": { "@wordpress/icons": "^9.32.0", From 0bbfa37cb8ba49275a0c21cb8ffcb8fff4d664c4 Mon Sep 17 00:00:00 2001 From: "Soare Robert Daniel (Mac 2023)" Date: Thu, 14 Dec 2023 13:40:01 +0200 Subject: [PATCH 3/3] fix: glider root selector in frontend --- src/blocks/frontend/slider/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blocks/frontend/slider/index.js b/src/blocks/frontend/slider/index.js index f77c55b75..868c5f00f 100644 --- a/src/blocks/frontend/slider/index.js +++ b/src/blocks/frontend/slider/index.js @@ -35,7 +35,7 @@ const init = () => { slider.appendChild( el.firstElementChild ); } - new window.Glide( `#${ slider.id }`, { + new window.Glide( slider, { ...slider.dataset, type: 'carousel', keyboard: true,