fix(z-logo): add visible focus indicator for keyboard navigation #572
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fixes WCAG 2.1.1 (Keyboard) by adding a visible focus indicator to the z-logo component's anchor element.
Issue: The z-logo component in the site header receives keyboard focus but provides no visible feedback, making it impossible for keyboard users to know when focus is on the logo link.
Solution: Added a 2px blue outline (
#005a9c) with 2px offset when the logo link receives keyboard focus. The fix uses both:focusand:focus-visibleto ensure proper behavior across browsers while respecting user preferences.Test Plan
Evidence
View before/after screenshots and full audit details:
https://app.workback.ai/dashboard/issue/76/
Before: Logo receives focus with no visual indicator
After: Logo shows clear blue outline when focused via keyboard
Technical Details
The fix adds focus styles to the anchor element within the z-logo shadow DOM:
WCAG Reference:
2.1.1 Keyboard (Level A)