Skip to content

Conversation

@ndiego
Copy link
Owner

@ndiego ndiego commented Jul 19, 2023

Previously, the Icon block color controls were placed inside a custom InspectorControls panel. However, we can now set group="color" when setting up an InspectorControls panel, which allows us to hook into the native "Color" panel.

This PR takes advantage of this change and moves the Icon and Background color controls to the native "Color" panel. Another benefit of this approach is that the Colors now appear at the top of the Style panel. Custom panels will always appear below native panels for block supports.

image

@ndiego ndiego added the Enhancement New enhancement or feature request. label Jul 19, 2023
@ndiego ndiego self-assigned this Jul 19, 2023
@ndiego ndiego merged commit cd9c71f into main Jul 19, 2023
@ndiego ndiego deleted the update-color-controls branch July 29, 2023 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New enhancement or feature request.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants