-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Block model v3 #17
base: main
Are you sure you want to change the base?
Block model v3 #17
Conversation
formData={data} | ||
fieldIndex={data.index} | ||
block={block} | ||
navRoot={navRoot} | ||
contentType={contentType} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For any props that aren't used directly here, you can do this on line 7:
const { data, block, schemaEnhancer, ...rest } = props;
And then pass them on together with {...rest}
in the component.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I implemented that.
Co-authored-by: David Glick <david@glicksoftware.com>
@@ -36,6 +40,12 @@ | |||
.block-editor-separator { | |||
clear: both; | |||
|
|||
&.has--shortLine--true .block.separator { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where does this come from?
I'd not do the shortline as in a custom classname, we have the Stylewrapper for it! Even if we only want to inject a classname (not all in the world have to be CSS properties). What do you think?
id: 'default', | ||
title: 'Default', | ||
fieldsets: [{ id: 'default', title: 'Default', fields: ['shortLine'] }], | ||
properties: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd do this as a stylewrapper property.
No description provided.