Skip to content
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

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open

Block model v3 #17

wants to merge 16 commits into from

Conversation

danalvrz
Copy link
Contributor

No description provided.

@danalvrz danalvrz marked this pull request as ready for review October 23, 2024 22:29
@danalvrz danalvrz requested a review from sneridagh October 23, 2024 22:29
formData={data}
fieldIndex={data.index}
block={block}
navRoot={navRoot}
contentType={contentType}
Copy link
Member

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I implemented that.

danalvrz and others added 2 commits October 24, 2024 17:15
@@ -36,6 +40,12 @@
.block-editor-separator {
clear: both;

&.has--shortLine--true .block.separator {
Copy link
Member

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: {
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants