Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INSTUI-4266 : The open/close sidebar button does not cause focus loss #1759

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

matyasf
Copy link
Collaborator

@matyasf matyasf commented Nov 6, 2024

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

Also better typing for some docs TS types.

There were some TS erorrs regaring icons, type some any-s correctly
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
@matyasf matyasf self-assigned this Nov 6, 2024
@matyasf matyasf changed the title Fix: The open/close sidebar button does not cause focus loss INSTUI-4266 : The open/close sidebar button does not cause focus loss Nov 6, 2024
type Glyph = {
bidirectional: boolean
lineSrc: string
solidSrc: string
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this was not updated with the icons page rewrite

Comment on lines +616 to +620
ref={(button) => {
if (button) {
button.focus()
}
}}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the fix

Copy link

github-actions bot commented Nov 6, 2024

PR Preview Action v1.4.8
Preview removed because the pull request was closed.
2024-11-07 10:28 UTC

@matyasf matyasf merged commit 0b4434d into master Nov 7, 2024
11 checks passed
@matyasf matyasf deleted the docs_sidebar_a11y branch November 7, 2024 10:28
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.

3 participants