[LOW] [UI-6] `.op-date-picker-input` has `outline: none` with no replacement focus indicator — keyboard users cannot see focus
Audit Finding: UI-6
- Severity:
LOW - Category: Accessibility (WCAG 2.4.7 Focus Visible)
- File:
public/assets/css/admin.css:2486-2497
Description
.op-date-picker-input { ... outline: none; ... } removes the browser's default focus outline, but no :focus / :focus-visible rule supplies a replacement box-shadow or outline. Every other input class in the codebase pairs outline: none with a :focus ring (e.g. .op-input:focus at line 2311, .op-navbar-search input:focus at line 4524, .op-field-group .op-input:focus at line 4886) — this one was missed.
Impact
Keyboard-only users (and screen-reader users tabbing through forms) cannot perceive when focus is on the date-picker field. They cannot tell which field will receive their typed input, violating WCAG 2.4.7 (Level AA). Affects every admin page that uses the custom date picker (transactions filter, reports, dashboard date-range switcher).
Reproduction
On /admin/transactions, press Tab repeatedly to traverse the filter row with the keyboard. When focus reaches the date-picker input, no visual indicator appears.
Recommended Fix
Add .op-date-picker-input:focus { border-color: var(--op-primary); box-shadow: 0 0 0 2px rgb(15 151 237 / 10%); outline: none; } mirroring the .op-input:focus rule.
Discovered during comprehensive codebase audit. See /home/z/my-project/worklog.md for full audit context.
Duplicate Issue — Closed
This issue is a duplicate of #473 (same audit finding UI-6 — both issues share the same title, file path, and description).
The fix has been implemented and is ready for review in PR #524: https://github.com/own-pay/OwnPay/pull/524
Tracking will continue under the canonical issue #473, which is referenced by the PR's Closes #473 line and will be auto-closed when the PR merges.
Closing this duplicate as not_planned to keep the audit tracker clean.