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: add text transform control. #40858

Merged
merged 1 commit into from
May 6, 2022
Merged

Conversation

jffng
Copy link
Contributor

@jffng jffng commented May 5, 2022

What?

This PR adds text transform controls to the button block.

Why?

It would be useful to be able to set button block's text to be uppercase from the editor.

Also, you can already set the text transform on button blocks via theme.json, but this isn't great because the user can't disable it from the site editor.

How?

Adds a one-liner to the block.json. I checked the global styles panel and the controls don't appear there — what do I need to do to make that happen?

Screen Shot 2022-05-05 at 1 26 11 PM

Testing Instructions

  1. Insert a button block
  2. Verify Typography > Text Transform is available from the block's settings
Kapture.2022-05-05.at.13.30.18.mp4

Screenshots or screencast

cc @WordPress/block-themers

@jffng jffng added [Block] Buttons Affects the Buttons Block [Feature] Design Tools Tools that impact the appearance of blocks both to expand the number of tools and improve the experi labels May 5, 2022
@jffng jffng requested a review from ajitbohra as a code owner May 5, 2022 17:33
@aristath aristath merged commit 2a3ac03 into trunk May 6, 2022
@aristath aristath deleted the add/text-transform-buttons branch May 6, 2022 06:37
@github-actions github-actions bot added this to the Gutenberg 13.3 milestone May 6, 2022
@femkreations femkreations added the Needs User Documentation Needs new user documentation label Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Buttons Affects the Buttons Block [Feature] Design Tools Tools that impact the appearance of blocks both to expand the number of tools and improve the experi Needs User Documentation Needs new user documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants