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

Button Block: Update to use color support utils to retrieve classes and styles #30870

Merged
merged 3 commits into from
Apr 19, 2021

Commits on Apr 19, 2021

  1. Switch the button block to use generic color support utils

    The existing color-props.js code has been reworked into a utility exported from
    the block support hooks to facilitate its reuse across blocks.
    aaronrobertshaw committed Apr 19, 2021
    Configuration menu
    Copy the full SHA
    32c18f8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6e011aa View commit details
    Browse the repository at this point in the history
  3. Update native button edit component to use color utilities

    This brings the native button component up-to-date after the switch to use the colors block support feature. It now also uses the color utilities for determining color styles and allows for the color-props.js file to be deleted.
    aaronrobertshaw committed Apr 19, 2021
    Configuration menu
    Copy the full SHA
    b521bb0 View commit details
    Browse the repository at this point in the history