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

Search bar accessibility #45

Merged
merged 4 commits into from
Nov 13, 2019

Conversation

eostrom
Copy link
Contributor

@eostrom eostrom commented Oct 21, 2019

  • all inputs should have labels
    • eliminated placeholder, which should only be used for examples
    • simulated placeholder interaction (label disappears on input)
    • (for usability, I don't think we should hide the label, but I'm not trying to redesign here)
  • focus highlight for locate button now surrounds the whole icon
    • this shifts the button's position slightly but I think it's fine
  • added alt text to locate icon

Also removed console.log which probably shouldn't be in production.

This fixes some of the low-hanging WCAG fruit (#23). I also added (empty) alt text to the landing page icon, so that accessibility checkers know that image is semantically empty on purpose.

- all inputs should have labels
  - eliminated placeholder, which should only be used for examples
  - simulated placeholder interaction (disappear on input)
  - for usability, I don't think we should hide the label, but I'm
    not trying to redesign here
- focus highlight for locate button now surrounds the whole icon
  - this shifts the button's position slightly but I think it's fine
- added alt text to locate icon

Also removed `console.log` which probably shouldn't be in production.

This fixes some of the low-hanging WCAG fruit (techforwarren#23).
The icon after "SHE HAS A PLAN FOR THAT" doesn't have any semantic
content, it's just decorative. I added an empty alt text so that
accessibility checkers will know it's empty on purpose.
@jasonkalmeida
Copy link
Collaborator

Hey Erik! Love these changes - will do a quick code review as soon as I can and merge it in. Thanks for tackling these low hanging fruit items so quickly 👊🏽

@jasonkalmeida jasonkalmeida merged commit 047a6c8 into techforwarren:master Nov 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants