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

Header navigation in Mobile menu doesn't have a outline on Close icon when opened #2974

Open
yogesh27 opened this issue Jul 13, 2024 · 0 comments
Labels
type: bug Something isn't working like it's supposed to

Comments

@yogesh27
Copy link

ReactUSWDS 6.1.0 & USWDS Version 3.7.1:

Header navigation in the Mobile menu doesn't have an outline on the Close icon when opened for the mobile view. Once the Menu button is activated, the focus should be set to the Close button and when the Close button is activated, the visible focus should be set to the Menu button.
Although we are using ReactUSWDS 6.1.0 & USWDS Version 3.7.1 but this issue can be reproduced at the example components deployed at https://trussworks.github.io/react-uswds

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://trussworks.github.io/react-uswds/?path=/story/components-header--extended-header
  2. Open this page in mobile view using the browser's emulation
  3. Click on Menu, and it will open the header items in a side navigation bar
  4. Once the Menu button is clicked, the focus should be set to the Close button
  5. The visible focus is not set to the Menu button when clicking the Close button.

Expected behavior
Once the Menu button is activated, the focus should be set to the Close button and when the Close button is activated, the visible focus should be set to the Menu button.

This behaviour works fine on the the USWDS components, but not working at react-uswds library.

Screenshots

Working at USWDS:
https://federalist-3b6ba08e-0df4-44c9-ac73-6fc193b0e19c.sites.pages.cloud.gov/preview/uswds/uswds/develop/iframe.html?id=components-header--extended-megamenu&args=&viewMode=story

image image

Not working with react-uswds:
https://trussworks.github.io/react-uswds/iframe.html?args=&id=components-header--extended-header&viewMode=story

image image

Additional context

Device and Browser Information (please complete the following information if describing a UI bug):

  • Browser - chrome
  • Version 126.0.6478.127
@yogesh27 yogesh27 added the type: bug Something isn't working like it's supposed to label Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working like it's supposed to
Projects
None yet
Development

No branches or pull requests

1 participant