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

Update color controls to use native "color" panel. #35

Merged
merged 1 commit into from
Jul 19, 2023

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.

None yet

1 participant