From e76f829c9fc026ebee8e2e854b0fa0e4dd9e2cdf Mon Sep 17 00:00:00 2001 From: Marco Ciampini Date: Fri, 1 Apr 2022 16:14:03 +0200 Subject: [PATCH] Global Styles Sidebar: wrap the preview box in a `CardMedia` component --- .../edit-site/src/components/global-styles/screen-root.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/edit-site/src/components/global-styles/screen-root.js b/packages/edit-site/src/components/global-styles/screen-root.js index 68250024d2830..9305e957b096c 100644 --- a/packages/edit-site/src/components/global-styles/screen-root.js +++ b/packages/edit-site/src/components/global-styles/screen-root.js @@ -10,6 +10,7 @@ import { CardBody, Card, CardDivider, + CardMedia, } from '@wordpress/components'; import { isRTL, __ } from '@wordpress/i18n'; import { chevronLeft, chevronRight, Icon } from '@wordpress/icons'; @@ -37,7 +38,9 @@ function ScreenRoot() { - + + + { !! variations?.length && (