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

[Authentication code] Small touch target size #18

Open
svinkle opened this issue May 19, 2020 · 0 comments
Open

[Authentication code] Small touch target size #18

svinkle opened this issue May 19, 2020 · 0 comments

Comments

@svinkle
Copy link
Member

svinkle commented May 19, 2020

Issue summary

The modal controls feature a small touch target size. Mobile users or people with motor or dexterity issues may not easily be able to access the links. This may result in a frustrating user experience.

Screen Shot 2020-05-18 at 11 04 37 AM

Current code

HTML

<button aria-label="More information" class="help__activator" type="button" >
  <!-- … -->
</button>

<!-- … -->

CSS

.help__activator {
  height: 20px;
  width: 20px;
  padding: 0;
  /* … */
}

Steps to reproduce

  1. Go to https://portal-rails.myshopify.io/ with with any supported browser
  2. Login with admin/password
  3. Use the web inspector to review the touch target size of the modal controls

Behavior

Expected

  • Controls to have a usable touch target size.

Actual

  • Controls feature too small touch target size to be comfortably usable.

Recommendation

  1. Increase the touch target size for the modal controls by adding extra padding. Ensure width and height are 44px at a minimum.
  2. Implement control size using em in order to increase in size when users zoom via text.

Recommended code

CSS

.help__activator {
  height: 1.25em;
  width: 1.25em;
  padding: 2em;
  /* … */
}

Specifications

  • Component: Authentication code
  • WCAG Principle: Operable
  • WCAG SC: 2.5.5 Target Size
  • Severity: Low
  • Effort: Medium
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant