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

907 refactor wayback search a11y #912

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

krisztin
Copy link

Description

Closes #907

Testing

Give it a whirl with a screen reader (i.e. NVDA or JAWS). For contrast issues see WebAim's contrast checker

Evidence

Screenshot from 2024-05-16 20-53-37

To comply with WCAG 2.2 Success Criterion 1.1.1 Non-text Content,
specifically decoration, as icon-search.js does not serve any functional
purpose it needs to have the attribute aria-hidden="true" so it can be
ignored by assistive technology and focusable="false" (for IE backwards
compatibility).
To comply with WCAG 2.2 Success Criterion 1.1.1 Non-text Content,
specifically decoration the svg logo itself needs an aria-hidden="true"
attribute (focusable=false is added for IE compatibility) so that it
can be ignored by assistive technology as it adds no useful context.
The only thing necessary is an aria-label on the anchor tag.
There were a few accessibility issues with the search field:

- Fieldset was used unnecessarily/improperly.
- The search label was on display:none which would make it invisible for
screen readers as well.
1. Text colour was #858585 on #eee background which has a 3.18:1
contrast ratio failing WCAG AA for normal text. Sufficient contrast
needed to be achieved. New contrast ratio is 21:1 passing both
AA and AAA requirements.

2. Contrast between the input's background (used to be #eee, now #fff)
and the parent elements background (#FCF5E6) is insufficient
(only 1.08:1), making the input a very difficult target for clicking
for the visually impaired.
By matching the border-radius of the input and parent element
we can achieve a more visually harmonious design.
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.

Wayback Search - proposed a11y improvements
1 participant