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

A11y: Add shortcut to bookmark an article #11116

Merged
merged 1 commit into from Oct 27, 2020

Conversation

reobin
Copy link
Contributor

@reobin reobin commented Oct 27, 2020

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

Adds a shortcut on b (for now?) to save an article as long as the user is focused somewhere inside the article.

Also adds a shortcut on the signup modal to close it on Escape keypress. It helps to keep the navigation mouseless after pressing b.

This will be more useful once #10468 is merged, but it can live on its own.

Also, b is to discuss here. Other options have been discussed such as ctrl+s.

Related Tickets & Documents

Closes #11018

QA Instructions, Screenshots, Recordings

  1. Focus on article (anywhere inside)
  2. Press b
  3. Article is saved/unsaved
    • Logged in: actually saves it
    • Logged out: Opens the signup modal

Added tests?

  • Yes
  • No, and this is why: not needed
  • I need help with writing tests

Added to documentation?

  • Docs.forem.com
  • README
  • No documentation needed

[optional] What gif best describes this PR or how it makes you feel?

alt_text

@pr-triage pr-triage bot added the PR: unreviewed bot applied label for PR's with no review label Oct 27, 2020
@reobin reobin changed the title feat: Add shortcut to bookmark an article A11y: Add shortcut to bookmark an article Oct 27, 2020
@Link2Twenty
Copy link
Contributor

Looks like an unrelated failure if someone could run Travis again?

Copy link
Contributor

@rhymes rhymes left a comment

Choose a reason for hiding this comment

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

It seems to be working @reobin!

Just a note, please remember to prefix your username to the name of PRs, see the contributing guide for details https://docs.forem.com/contributing/forem/ - thank you!

@pr-triage pr-triage bot added PR: partially-approved bot applied label for PR's where a single reviewer approves changes and removed PR: unreviewed bot applied label for PR's with no review labels Oct 27, 2020
@benhalpern benhalpern merged commit 10d7da2 into forem:master Oct 27, 2020
@pr-triage pr-triage bot added PR: merged bot applied label for PR's that are merged and removed PR: partially-approved bot applied label for PR's where a single reviewer approves changes labels Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: merged bot applied label for PR's that are merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: Add a keyboard shortcut to save an article in the feed
4 participants