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

[web-components]: Blue border on hamburger menu first element #11379

Open
2 tasks done
NicoletaBordea opened this issue Jan 10, 2024 · 1 comment
Open
2 tasks done

[web-components]: Blue border on hamburger menu first element #11379

NicoletaBordea opened this issue Jan 10, 2024 · 1 comment
Labels
bug Something isn't working dev Needs some dev work package: web components Work necessary for the IBM.com Library web components package

Comments

@NicoletaBordea
Copy link

Description

the first item in the hamburger menu is highlighted with a blue border
image

In our project this is visible from the first click on the hamburger menu, but on the codepen example and in the demo links for masthead, in the documentation, it can be reproduced only on the second time you open the hamburger menu.

Component(s) impacted

masthead hamburger menu

Browser

Chrome

Carbon for IBM.com version

v2.1.0-rc.0

Severity

Severity 4 = The problem is not visible to or noticeable to an average user. Affects minor functionality, no workaround needed.

Application/website

ibm docs

Package

@carbon/ibmdotcom-web-components

CodeSandbox example

https://codepen.io/jakaeser/pen/gOqErGE

Steps to reproduce the issue (if applicable)

  1. resize the window for a smaller resolution, until you have the hamburger menu visible in the masthead.
  2. open the hamburger menu: nothing is highlighted
  3. Close the hamburger menu and reopen it again: first item in the menu has a blue border

In our project, this highlight is visible from the first time the hamburger menu is opened

Release date (if applicable)

No response

Code of Conduct

@NicoletaBordea NicoletaBordea added bug Something isn't working dev Needs some dev work labels Jan 10, 2024
@kennylam kennylam added the package: web components Work necessary for the IBM.com Library web components package label Jan 22, 2024
@kennylam kennylam moved this to Backlog in Carbon for IBM.com Jan 22, 2024
@sangeethababu9223 sangeethababu9223 self-assigned this Jan 24, 2024
@sangeethababu9223 sangeethababu9223 moved this from Backlog to Doing in Carbon for IBM.com Jan 25, 2024
@sangeethababu9223 sangeethababu9223 removed their assignment Jan 25, 2024
@annawen1
Copy link
Member

annawen1 commented Feb 23, 2024

This is a accessibility feature where when the menu is open, focus should be applied to the first menu item to make the menu keyboard accessible. This is intended, so this ticket does reveal an issue where the first menu item isn't being focused on open consistently

https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dev Needs some dev work package: web components Work necessary for the IBM.com Library web components package
Projects
Status: Doing
Development

No branches or pull requests

4 participants