Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .jules/palette.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 2026-07-17 - [Bilingual UI Keyboard Focus Indicators]
**Learning:** In highly customized desktop/web hybrid editors like Bangladesh Code, custom UI layouts (like the Lucide-icon-based Activity Bar and custom header navigation) rely heavily on raw buttons, anchor tags, and role-based wrappers. If standard outlines are globally reset to `none` (often done to satisfy custom design requirements), keyboard-only users become completely blind to the currently active element when pressing Tab, severely degrading accessibility.
**Action:** Always provide a high-contrast `:focus-visible` outline utilizing existing theme-aware CSS variables (like `--accent-color` or `--gov-green`) with a slight offset. This ensures that only keyboard navigation triggers the outline, preserving the custom mouse-driven aesthetics while guaranteeing flawless compliance with WCAG 2.1 AAA keyboard accessibility.
13 changes: 13 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,19 @@ input:focus, textarea:focus, select:focus {
border-color: var(--accent-color);
}

/* High-visibility focus indicators for keyboard navigation */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[role="button"]:focus-visible,
[role="tab"]:focus-visible,
[tabindex="0"]:focus-visible {
outline: 2px solid var(--accent-color);
outline-offset: 2px;
}

/* ── VS Code-style resize handles ─────────────────────────────── */

/* Vertical resize handle (left sidebar & right sidebar) */
Expand Down
Loading