GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web): stop the sidebar project menu from highlighting the first project on open by ishaanko · Pull Request #7916 · pingdotgg/t3code

Conversation

@ishaanko

@ishaanko ishaanko commented Aug 22, 2026 •
edited by cursor Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Opening the sidebar project filter with the mouse highlighted the first project row even though the pointer was not over it. It looked like a stray hover state.

Base UI's MenuPopup focuses the first tabbable element on open. Menu rows are tabIndex=-1 until highlighted, so that element was the project settings gear button in the first project row; focus bubbled into the row and highlighted it. The gear now hands that open-time focus to the menu itself (only when focus arrives from outside the popup) so the row does not light up. The gear stays in the tab order: Tab from a highlighted row still reaches it, arrow keys still move between rows, and the gear still opens settings by mouse and keyboard.

Fixes #7915. Related to #1399 and #5521, which cover the broader keyboard/screen-reader story for these gear buttons.

Before After
before after

Made with Claude Fable 5 in Claude Code.


Note

Low Risk
Single localized focus-handling change in sidebar UI with no auth, data, or API impact.

Overview
Fixes a misleading highlight when opening the sidebar project filter with the mouse: the first project row looked selected even though the cursor was not over it.

Base UI focuses the first tabbable control when the menu opens; in this list that is the per-row settings gear, and focus bubbling into the MenuRadioItem triggered row highlight. The gear’s new onFocus handler detects focus entering from outside the popup (relatedTarget not inside [role="menu"]), stops propagation, and moves focus to the menu container with preventScroll. Tab from a keyboard-highlighted row still reaches the gear; mouse click and existing onPointerDown behavior are unchanged.

Reviewed by Cursor Bugbot for commit 58cd938. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Fix sidebar project menu highlighting first project's settings button on open

Adds an onFocus handler to the project settings Button in Sidebar.tsx. When focus enters the menu from outside (e.g., on menu open), the handler stops propagation and programmatically focuses the menu container with preventScroll=true, so the first row's gear icon does not receive initial focus. Click handling and tab navigation from a highlighted row are unchanged.

Macroscope summarized 58cd938.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 22, 2026

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Aug 22, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 010f55a9-d0bc-43b8-a1c5-4e3c42576d34

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Aug 22, 2026
macroscopeapp[bot]
macroscopeapp Bot reviewed Aug 22, 2026
View reviewed changes

@macroscopeapp macroscopeapp Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One finding: the fix removes the only keyboard path to per-project settings from this menu. See the inline comment.

Posted via Macroscope — UI Consistency

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread apps/web/src/components/Sidebar.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

@macroscopeapp

macroscopeapp Bot commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Skipped

Macroscope did not run approvability analysis for this PR. Macroscope could not determine whether this PR modifies its approvability configuration, so the PR was not approved automatically. A PR that may change the rules that govern approval is never approved automatically.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added size:S 10-29 changed lines (additions + deletions). and removed size:XS 0-9 changed lines (additions + deletions). labels Aug 22, 2026
ishaanko added 2 commits August 24, 2026 17:20
@ishaanko
fix(web): stop the sidebar project menu from highlighting the first p…
dd2ad43
…roject on open
@ishaanko
fix(web): keep the project settings gear tabbable, redirect only the …
58cd938
…open-time focus
@ishaanko
ishaanko force-pushed the fix/project-menu-open-highlight branch from e03213a to 58cd938 Compare August 25, 2026 00:21
@t3dotgg t3dotgg mentioned this pull request Aug 27, 2026
fix(web): stop project-scope menu from highlighting first row without hover #7950
Closed
@t3dotgg

t3dotgg commented Sep 1, 2026

Copy link
Copy Markdown
Member

Note

🤖 GPT-5.6 Sol responding on behalf of Theo

We're closing this PR as we clean up the T3 Code backlog. Thank you for taking the time to put this together.

Merged PR #5931 replaced the old project MenuPopup with a searchable combobox. The focus handoff added here looks for the removed menu ancestor, so it no longer applies to the current project filter. This does not resolve the separate keyboard and screen-reader requests for the settings gears.

If you believe we closed this in error, please reopen the PR and leave a comment explaining what we missed.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@t3dotgg t3dotgg closed this Sep 1, 2026
@ishaanko
ishaanko deleted the fix/project-menu-open-highlight branch October 1, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:S 10-29 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Sidebar project menu highlights the first project on open without hover

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@ishaanko @t3dotgg
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.