-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Hide remove control point when removing would break gradient control #37186
Conversation
Size Change: +6 B (0%) Total Size: 1.11 MB
ℹ️ View Unchanged
|
Thanks a whole bunch for the PR! This feels like an excellent step forward. I'll give this one a quick review and hopefully green check tomorrow when I get a chance, but I'll CC some folks in case they can get to it in the mean time. Thank you! |
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.
Tested with the cover block and it works as advertised
Description
This hides the "Remove control point" button when there are two or fewer control points as mentioned in #37178. Removing any at that point breaks the UI a little as you can't have a gradient with just one color, and having the button enabled means you could endlessly remove the control point.
Prior behavior:
How has this been tested?
In the gradient picker add and remove control points to see that the remove button hides when there are fewer than two points in the gradient.
Screenshots
Types of changes
Bug fix
Checklist:
*.native.js
files for terms that need renaming or removal).