Skip to content

homescreen style and keyboard nav fixes#11311

Open
jwunderl wants to merge 5 commits into
masterfrom
dev/jwunderl/quick-fixes
Open

homescreen style and keyboard nav fixes#11311
jwunderl wants to merge 5 commits into
masterfrom
dev/jwunderl/quick-fixes

Conversation

@jwunderl
Copy link
Copy Markdown
Member

fix microsoft/pxt-microbit#6842
fix microsoft/pxt-microbit#6826
fix microsoft/pxt-microbit#6810
fix microsoft/pxt-microbit#6841
last commit minor improvement noticed re: above, since tab order was weird hadn't come up before; navigate user focus back to where the detailview was sourced from when closed via keyboard event on closebutton. Current behavior is weird / inconsistent, focus goes away and browser does it's best to restore (usually going to first card in next row, roughly)

@jwunderl jwunderl requested review from a team and Copilot May 14, 2026 17:42
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Fixes several home screen styling and keyboard navigation issues in the projects view, primarily around the detail view interaction and focus management.

Changes:

  • Restores selected card visual styling (border + arrow indicator) and applies focus-visible styling to the search/go-back buttons.
  • Moves the detail view's CloseButton to the end of the detail container (so tab order is sensible) and restores focus to the originating card when the detail is closed via keyboard.
  • Forwards a ref to the Link component so the autoFocus behavior on the action button works for link-style actions.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
webapp/src/projects.tsx Adds focus-restoration helpers, reorders CloseButton in detail views, threads optional restoreFocus through closeDetail, and passes linkRef to Link when autofocusing.
theme/home.less Re-adds selected-card border/arrow styling and extends focus-visible styling to search and go-back buttons.
react-common/components/controls/Link.tsx Converts Link to React.forwardRef to allow callers to focus the underlying anchor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment