-
Notifications
You must be signed in to change notification settings - Fork 4k
Add larger delete icon to make it easier to do on touch devices #4915
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
Add larger delete icon to make it easier to do on touch devices #4915
Conversation
rschamp
left a comment
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.
Looks great!
| /* .delete-button.large:hover { | ||
| transform: scale(1.1, 1.1); | ||
| box-shadow: 0 0 0 4px $ui-black-transparent; | ||
| } */ |
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.
Cruft?
| props.className | ||
| )} | ||
| role="button" | ||
| tabIndex="0" |
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.
Eventually this should probably be a prop with a default value of 0 so it can be changed. But for now I think if they're all the same, the browser does the right thing anyway.
Prototype of larger delete button for sprites, costumes and sounds to better support touch devices. I split it out from `CloseButton` as it made the changes simpler, and we may end up going in a different direction (open context menu).
7ad582f to
4e47cc8
Compare
|
@rschamp I did the cleanup, but now there's a test failing on travis - times out converting to vector in the costumes test. However, it doesn't fail when I run it locally. Thoughts? |
|
Let's try out the "merged into develop" version of the code locally and see if we can reproduce. And also rerun that build. It doesn't look completely unrelated to these changes even though it's not obvious why this particular action would fail. |
|
However, what does that button do? Delete the trash bin? The icon should be either a trash bin or a X, not both. |
Resolves
What Github issue does this resolve (please include link)?
Proposed Changes
Since it's using a new icon, don't repurpose the
CloseButtonand instead add a newDeleteButtonwith the new asset and styles.Reason for Changes
When using the gui on ChromeOS or Android touch devices we observed that it would take multiple tries to delete a sprite.
Test Coverage
Updated the previous Delete tests to test the new component.
Browser Coverage
Check the OS/browser combinations tested (At least 2)
Mac
Windows
Chromebook
iPad
Android Tablet