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

Blocks: Dropping the controls property from blocks #1262

Merged
merged 2 commits into from
Jun 21, 2017

Conversation

youknowriad
Copy link
Contributor

@youknowriad youknowriad commented Jun 19, 2017

In this PR, I'm updating all the blocks to use BlockControls in edit instead of the controls property.

related #1205

@youknowriad youknowriad added the Framework Issues related to broader framework topics, especially as it relates to javascript label Jun 19, 2017
@youknowriad youknowriad self-assigned this Jun 19, 2017
@youknowriad youknowriad requested a review from aduth June 19, 2017 13:41
Copy link
Contributor

@BE-Webdesign BE-Webdesign left a comment

Choose a reason for hiding this comment

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

Looks Great Riad! The gallery controls as well as the quote controls still work, so I do not believe any regressions occurred. Been a while since I looked at the blocks, and I like the new pattern where the control views are defined in the block instead of higher up.

return [
controls,
focus && images.length > 1 && (
<InspectorControls>
Copy link
Contributor

Choose a reason for hiding this comment

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

This will need a key attribute set for it I believe.

Copy link
Contributor Author

@youknowriad youknowriad Jun 21, 2017

Choose a reason for hiding this comment

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

Good catch 👍

@BE-Webdesign BE-Webdesign dismissed their stale review June 21, 2017 03:39

Don't want to lock this PR up.

@youknowriad youknowriad force-pushed the update/drop-controls-property branch from ca0517f to 317827c Compare June 21, 2017 09:41
@youknowriad youknowriad merged commit e23fdcd into master Jun 21, 2017
@youknowriad youknowriad deleted the update/drop-controls-property branch June 21, 2017 09:49
@youknowriad
Copy link
Contributor Author

Thanks for the review @BE-Webdesign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Framework Issues related to broader framework topics, especially as it relates to javascript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants