Skip to content
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 the undo button to cancel video removal. #99

Merged
merged 13 commits into from
Mar 18, 2021

Conversation

derekherman
Copy link
Collaborator

@derekherman derekherman commented Mar 13, 2021

Summary

Fixes #86
Fixes #96

  • Adds a "Undo" button to cancel individual video removal.
  • Removes invalid <button> markup. Buttons may not contain interactive content, which among others means <img> elements.
  • Added tabindex attributes and role="button" to spans instead to keep things accessible.
2021-03-12_10-22-20.mp4

@dero
Copy link
Collaborator

dero commented Mar 15, 2021

This also fixes #96 – marking in the description.

@derekherman, could you please share what issues you encountered when you first merged this? Or – if we decide to not go with this update – please let me know and I'll cherry pick the changes necessary to fix #96 into a new PR.

Copy link
Contributor

@merapi merapi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is valid markup (check the usemap part).

image

And to just confirm with W3C:
<button><img usemap="#map" alt="..." src="..." /></button> =
image

<button><img alt="..." src="..." /></button> = ✅

That change also broke the accessibility (keyboard usage is now broken).

@dero
Copy link
Collaborator

dero commented Mar 15, 2021

I stand corrected, @merapi, and will revert the unnecessary change. 👍

@dero dero requested review from merapi and removed request for merapi March 17, 2021 08:45
dero
dero previously approved these changes Mar 17, 2021
Copy link
Collaborator

@dero dero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@derekherman I merged the latest develop in and I'm not seeing any issues. Can you please re-test?

@dero
Copy link
Collaborator

dero commented Mar 17, 2021

@derekherman Fixed the issues with download buttons.

I have not fixed the issue with downloaded videos dimming out incorrectly, because #104 changes the whole system anyway and fixes the issue.

If you don't want to deal with the two PRs separately and deal with merge conflicts, I merged the branches together into:

Feel free to use it for testing and open a PR from that branch if you don't want to deal with merge conflicts.

dero
dero previously approved these changes Mar 17, 2021
@derekherman
Copy link
Collaborator Author

@dero this appears to have had the connection PR merged in, as well.

@derekherman derekherman merged commit 1f07bb4 into develop Mar 18, 2021
@derekherman derekherman deleted the update/undo-removals branch March 18, 2021 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants