From 14613076d60c173eb5ad6408ebec9d65c5b34b6a Mon Sep 17 00:00:00 2001
From: Rishit Gupta <74411873+Rishit30G@users.noreply.github.com>
Date: Tue, 21 Jan 2025 13:23:33 +0530
Subject: [PATCH] fix canvas styles and Default object
---
.../components/block-canvas/stories/index.story.js | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/packages/block-editor/src/components/block-canvas/stories/index.story.js b/packages/block-editor/src/components/block-canvas/stories/index.story.js
index d91670f0af8e6..e0ede59a25336 100644
--- a/packages/block-editor/src/components/block-canvas/stories/index.story.js
+++ b/packages/block-editor/src/components/block-canvas/stories/index.story.js
@@ -36,7 +36,10 @@ const meta = {
control: 'object',
description: 'The styles to apply to the canvas.',
table: {
- type: { summary: 'object' },
+ type: {
+ summary:
+ '{ css?: string; assets?: string; isGlobalStyles?: boolean; __unstableType: string; }[]',
+ },
},
},
},
@@ -46,12 +49,9 @@ export default meta;
export const Default = {
args: {
- height: '300px',
- styles: {
- border: '1px solid #ccc',
- backgroundColor: '#f9f9f9',
- },
- children: , // Default `children` is `BlockList`
+ height: '100px',
+ styles: [ { css: `body{font-size: 16px;}` } ],
+ children: ,
},
render: function Template( args ) {
return ;