-
Notifications
You must be signed in to change notification settings - Fork 0
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
[BBT-95] Adds Support for Gradients #101
Conversation
Thanks for picking this up @chrishall0 🙌 |
@g-elwell made a small change to the if statement before the render, noticed it wasn't rendering in scenarios where there were no preset gradients available however the tool is still usable to create custom gradients |
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.
Works great, thanks @chrishall0 !
Description
Fixes #95. This PR adds a GradientPicker component.
Component has been added within the Color component rather than it's own section as this is where it would be within the core Site Editor. In the theme.json scheme the gradient values live within the color options also.
Change Log
Steps to test
Default Gradient options should be available with a standard theme.json (i'm using twenty twenty three) unless
settings.color.defaultGradients
is set to false.Theme Gradients will need to be added to test those. For example theme.json could be updated -
settings.color.gradients
Setting
settings.color.customGradient
tofalse
in the theme.json should hide the ability to customise gradients in the Component.Screenshots/Videos
Checklist: