Skip to content

Commit 0b4434d

Browse files
committed
fix: do not lose focus when opening the side menu in the docs app
Now the focus moved to the 'close' button of the opened sidebar TEST PLAN: open and close the menu on the docs app with keyboard. Focus should not get lost. Also test with screenreaders
1 parent 1500665 commit 0b4434d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/__docs__/src/App/index.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,11 @@ class App extends Component<AppProps, AppState> {
613613
shape="circle"
614614
color="secondary"
615615
size="medium"
616+
ref={(button) => {
617+
if (button) {
618+
button.focus()
619+
}
620+
}}
616621
/>
617622
</InstUISettingsProvider>
618623
</View>

0 commit comments

Comments
 (0)