Skip to content

🎨 Palette: Make search controls keyboard accessible - #36

Open
dezren39 wants to merge 1 commit into
mainfrom
palette/search-button-keyboard
Open

dezren39 wants to merge 1 commit into
mainfrom
palette/search-button-keyboard

Conversation

@dezren39

@dezren39 dezren39 commented Nov 4, 2026 •

Copy link
Copy Markdown
Member
  • I release the following change request under the default LICENSE configuration described here: README.md#license
  • I release the following change request under the following LICENSE configuration:
    • The LICENSE is documented within the content.
    • The LICENSE is included in the the repo.
    • The LICENSE is linked prominently in the content.
    • The LICENSE is within the content.
    • The LICENSE is a recognized, common license identified by a known authority.
    • License Name:
    • SPDX License Identifier:
    • Explained the reason for the different license below.

💡 What

Replaced the JavaScript-only search anchors in the sidebar and footer with native buttons, preserving the search label/shortcut tooltip and adding a visible keyboard focus outline.

🎯 Why

Anchors without href are not reliably keyboard-focusable or keyboard-activatable. Native buttons work with Tab, Enter, and Space.

📸 Before / After

Before: click-only anchors. After: labeled, keyboard-operable buttons with a 2px focus-visible outline.

♿ Accessibility

Both repeated search controls now use button semantics and expose a clear focus indicator.

Verification

  • nix build --no-link --print-out-paths — passed (same site build used in CI).
  • git diff --check — passed.
  • No separate lint or test command is defined in this repository.

Queue task #9738 (dispatcher reported no linked issue).

Confidence: high. Human check: confirm the search icon remains visually aligned in the sidebar and footer in the deployed site.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Summary by CodeRabbit

  • Accessibility
    • Changed the sidebar and footer search controls to buttons, with visible keyboard-focus outlines. Their labels and search behavior remain unchanged.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T20:58:21.427766Z 9d59780 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The footer and sidebar search controls change from anchors to buttons. Both retain their existing search behavior and add focus-visible outline styling. A dated palette entry records the use of buttons for non-navigating search controls.

Changes: Search controls

Layer / File(s) Summary
Replace search anchors with buttons
.Jules/palette.md, templates/components/footer.tpl, templates/components/sidebar.tpl
The footer and sidebar search controls now use buttons and retain their labels, titles, handlers, and icons. Both add focus-visible outline styling. The palette entry records this pattern for non-navigating controls.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix

Merge Risk: Minimal · up to 9d597

The keyboard-accessibility changes preserve existing search behavior without introducing an identified merge-blocking risk.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: making the search controls keyboard accessible.
Description check Passed The description uses the required license section and provides clear What, Why, accessibility, verification, and manual-check details relevant to the changes.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (3 skipped: 3 unsupported.)

Finishing Touches
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share
Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9b4c119b-ef03-46f5-a827-79529cb2e8df
Commits

Reviewing files that changed from the base of the PR and between 4ea6711 and 9d59780.

Files selected for processing: 3
  • .Jules/palette.md
  • templates/components/footer.tpl
  • templates/components/sidebar.tpl

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

This branch was successfully deployed

1 active deployment
ci — 9d597804 Deployed Nov 4, 2026 by dezren39 via ci #369
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.

1 participant