-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Gradient picker: Small refinement to "Remove Control Point". #37178
Conversation
Size Change: +175 B (0%) Total Size: 1.11 MB
ℹ️ View Unchanged
|
I think the text link looks better and is easier to understand. The icon is slightly mysterious (what am I throwing in the trash?) and also visually unbalanced. I think the label could be updated to something like "Remove color" and would be pretty good. |
Do you think removing a control point deserves so much prominence? |
Its already pretty hidden inside the popover. Once I've indicated I want to adjust the control point, then I think removing it should be obvious. I'm not sure making it a trash icon necessarily reduces it's prominence; It does take up less space, but its also more mysterious and unclear. |
I agree with @shaunandrews about it feeling unbalanced in the corner. Having a little bit more prominence by centering I think would be fine, or shortening the text to read "Remove color" would also be okay. Anyway, the fix for hiding the label was a quick one, so the PR is up #37186 I see there's also a bug with the control point jumping towards the center when you click on it in your GIF, so I might give that a look as well if it happens to be a quick fix. |
I guess this needs a more holistic design then, though I still feel like the titlecase and the centered + underlined style for the button is awkward. Thanks for the feedback, and thanks Alex for the separate PR for the multiple controls, that's a big step on its own. |
Description
The flow for removing gradient control points is currently a bit challenged:
Specificlally, the "Remove Control Point" button has undue prominence, is a link button, uses titlecase, and doesn't really sit in a well-balanced part of the interface.
This PR is what I'd consider a very small bandaid to reduce the prominence a little bit, without making big changes. It just makes it a small trash button:
I don't really like the placement or flow, or the icon. To an extent I would think it plenty sufficient for the Delete key to remove the point, as it's such an edgecase that it really should have little prominence in the UI. But as a temporary holdover, this seems like a small win.
I also noticed by the way that you can endlessly remove control points. It seems like we should show the "remove control point" button only if there are more than two control points, since the gradient isn't actually functional with less than that:
@ajlende is this something you can help me with?
Checklist:
*.native.js
files for terms that need renaming or removal).