-
Notifications
You must be signed in to change notification settings - Fork 0
Feat(formats): Add gradient text #65
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
base: dev
Are you sure you want to change the base?
Conversation
Playground Preview⚡️WordPress Playground Preview I will update this comment with the latest preview links as you push more changes to this PR. Note The preview sites are created using WordPress Playground. You can add content, edit settings, and test the pull request as you would on a real site, but please note that changes are not saved between sessions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did a review with a few minor suggestions. The changes work very well though when I tested on a Playground site!
isActive, | ||
}) { | ||
const name = 'blablablocks/gradient-text'; // Format type name | ||
const PREFIX = 'background:'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
__next40pxDefaultSize | ||
> | ||
{__('Clear', 'blablablocks-formats')} | ||
</Button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed that we are not using the Clear
button provided within the GradientPicker
component and use a custom Clear
button instead. I did a test by reverting to the GradientPicker built-in clear button ( setting clearable to true ), it seems to work fine.
Is there any reason we are overriding that?
Summary
This PR introduces a new gradient text format that enhances visual appeal and allows for more engaging typography styles.
Screenshots / Screen Recording / Logs
Screen.Recording.2025-08-08.at.5.04.33.PM.1.mov