Steps to reproduce
- Go to https://en.m.wikipedia.org/w/index.php?title=Barack_Obama&mobileaction=toggle_view_mobile
- Tab so that the hamburger menu icon is focused
- Press enter key
Expected results
- Hamburger menu opens
Actual results
- Search overlay opens
Environments observed
- Browser version: Chrome
- OS version: MacOS Big Sur
- Device model: MacBook Pro
- Device language: en
Check any additional observations
- Observed on the beta cluster wiki
- Observed on a production wiki
- Observed on Vector desktop skin
- Observed on MinervaNeue responsive skin
- Observed while logged in
- Observed while not logged in (anonymous)
Developer notes
The hamburger menu is wrapped in a form and contains a button element. The default behavior of a button with no type attribute is to to act as a submit button. The hamburger menu uses the checkbox hack with a focusable checkbox. When the user presses the enter key with the checkbox in focus, a "click" event is triggered on the button which makes the search overlay appear.
QA Results - Beta
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T294164#7634973 |
QA Results - Prod
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T294164#7634980 |


