From 991aff132f12767594ba651a588ae46b98e18244 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 15 Aug 2024 11:21:09 +0100 Subject: [PATCH] Don't strip grid CSS variables from styles, allowing block ejection to reference them --- packages/client/src/utils/grid.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/client/src/utils/grid.js b/packages/client/src/utils/grid.js index d51f1c7058..805fb429ba 100644 --- a/packages/client/src/utils/grid.js +++ b/packages/client/src/utils/grid.js @@ -120,8 +120,6 @@ export const gridLayout = (node, metadata) => { let mVar = getGridVar(Devices.Mobile, param) vars[dVar] = styles[dVar] || styles[mVar] || defaults[param] vars[mVar] = styles[mVar] || styles[dVar] || defaults[param] - delete styles[dVar] - delete styles[mVar] } // Apply some overrides depending on component state