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

Hamburger icon should replace with close icon if menu opens up #187

Closed
kapilG0 opened this issue Jun 24, 2024 · 3 comments · Fixed by #197
Closed

Hamburger icon should replace with close icon if menu opens up #187

kapilG0 opened this issue Jun 24, 2024 · 3 comments · Fixed by #197
Labels
type: bug Something isn't working

Comments

@kapilG0
Copy link

kapilG0 commented Jun 24, 2024

Describe the Issue

Hamburger icon needs to be replaced with close icon if menu opens up

Affected Page

https://contribute.freecodecamp.org/faq/

Steps to Reproduce

Screenshot_20240624_221959

Expected behavior

Screenshot_20240624_221959

Screenshots

Screenshot_20240624_221959

System

  • Device: android
  • Browser: chrome

Additional context

No response

@kapilG0 kapilG0 added the type: bug Something isn't working label Jun 24, 2024
@kapilG0
Copy link
Author

kapilG0 commented Jun 24, 2024

Hello @alinmigea please assign this issue to me under gssoc 24

@huyenltnguyen huyenltnguyen transferred this issue from freeCodeCamp/freeCodeCamp Jun 24, 2024
@ilenia-magoni
Copy link
Contributor

Issues are not assigned, if you are interested in contributing please check the issues with the help wanted label @kapilG0

@bbsmooth
Copy link

I don't think it is essential that the icon visually change to a close button, but it won't hurt anything. The accessible name on the button, currently defined as "Menu" with the aria-label attribute should NOT change however.

Also, I'm noticing that while this button does have the aria-expanded attribute set to false when the menu is not visible, it does not change to true when the menu is visible. This is a WCAG failure that needs to be fixed. I am noticing that the custom starlight-menu-button element wrapping the button also has an aria-expanded attribute and that is toggling true and false as the button is clicked. This is unnecessary on this element. It's the actual button element that needs to toggle the aria-expanded value.

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
Projects
Development

Successfully merging a pull request may close this issue.

3 participants