-
Notifications
You must be signed in to change notification settings - Fork 69
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
[MainMenu]: page crashes when WAVE accessibility browser extension is enabled #2715
Comments
Please, add "A11y" label, if necessary. |
Fixed. The issue occurred because the Wave extension modifies the DOM structure when enabled, adding its own nodes for errors and other information. In this case, Wave added nodes for an "Empty button" error inside the MainMenu. Since the MainMenu uses the AdaptivePanel to measure and layout items, this 'unexpected invasion' caused the error. I resolved the issue by adding an |
Thank you! It does work for const avatarRef = useRef<HTMLButtonElement | null>(null);
useEffect(
() => {
avatarRef.current?.setAttribute(
"aria-label",
"User avatar",
);
},
[],
);
// ...
<MainMenuAvatar
ref={avatarRef}
// Other props
/> To simplify this case, it would be great to add |
Thanks, we already noticed this case too. We will add that fix in next release. |
Description
When enabling WAVE browser extension, the page crashes, when
MainMenu
component is present.Steps to Reproduce
MainMenu
component from the DOM via DevTools (XPath:/html/body/div/div[1]/header/nav
)Actual result
Step 3:
Step 6:
Expected result
The page is rendered correctly with inserted labels on steps 3 and 6.
Environment
The text was updated successfully, but these errors were encountered: