From 0f5268429000294964864325e74645b54b6d1087 Mon Sep 17 00:00:00 2001 From: Joey Wunderlich Date: Thu, 14 May 2026 09:43:03 -0700 Subject: [PATCH 1/5] restore autofocus for other actions, fix microsoft/pxt-microbit#6842 --- react-common/components/controls/Link.tsx | 5 +++-- webapp/src/projects.tsx | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/react-common/components/controls/Link.tsx b/react-common/components/controls/Link.tsx index 5a26164b2dfe..2d251eeab564 100644 --- a/react-common/components/controls/Link.tsx +++ b/react-common/components/controls/Link.tsx @@ -8,7 +8,7 @@ export interface LinkProps extends ContainerProps { title?: string; } -export const Link = (props: LinkProps) => { +export const Link = React.forwardRef((props, ref) => { const { id, className, @@ -29,6 +29,7 @@ export const Link = (props: LinkProps) => { { {children} ); -} \ No newline at end of file +}); \ No newline at end of file diff --git a/webapp/src/projects.tsx b/webapp/src/projects.tsx index 18418a4b23b6..c970f1eda4bf 100644 --- a/webapp/src/projects.tsx +++ b/webapp/src/projects.tsx @@ -1754,6 +1754,7 @@ function cardActionButton(props: Partial, className: string // for a side fix (detail card buttons, etc) return asLink ? // TODO (shakao) migrate forumurl to otherAction json in md Date: Thu, 14 May 2026 10:13:56 -0700 Subject: [PATCH 2/5] search, go back button focus indicator fixes microsoft/pxt-microbit#6826 --- theme/home.less | 4 +++- webapp/src/projects.tsx | 14 +++++++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/theme/home.less b/theme/home.less index 5ad8a51ff2c3..7d4474115c17 100644 --- a/theme/home.less +++ b/theme/home.less @@ -294,7 +294,9 @@ padding-top: 1em; margin: 1em @carouselArrowSize; } - .import-dialog-btn { + .import-dialog-btn, + .home-search-btn, + .go-back-btn { position: relative; z-index: 1; /* Move up so it's above the carousel container that has an offset margin */ &:focus-visible { diff --git a/webapp/src/projects.tsx b/webapp/src/projects.tsx index c970f1eda4bf..d463a4b69cba 100644 --- a/webapp/src/projects.tsx +++ b/webapp/src/projects.tsx @@ -411,7 +411,7 @@ export class Projects extends auth.Component {