commit 7bd13722128e1a5348212e5ddcad9ae6dc0afe26
parent aa33de4425adac8807d2d043aac32ac82491c3e2
Author: Dre Grant <dgrant@mozilla.com>
Date: Fri, 14 Nov 2025 19:11:43 +0000
Bug 1893720 menu open screen reader r=home-newtab-reviewers,nbarrett
Differential Revision: https://phabricator.services.mozilla.com/D272682
Diffstat:
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/browser/extensions/newtab/content-src/components/ContextMenu/ContextMenuButton.jsx b/browser/extensions/newtab/content-src/components/ContextMenu/ContextMenuButton.jsx
@@ -52,7 +52,8 @@ export class ContextMenuButton extends React.PureComponent {
return (
<React.Fragment>
<button
- aria-haspopup="true"
+ aria-haspopup="menu"
+ aria-expanded={showContextMenu}
data-l10n-id={tooltip}
data-l10n-args={tooltipArgs ? JSON.stringify(tooltipArgs) : null}
className="context-menu-button icon"
diff --git a/browser/extensions/newtab/data/content/activity-stream.bundle.js b/browser/extensions/newtab/data/content/activity-stream.bundle.js
@@ -2460,7 +2460,8 @@ class ContextMenuButton extends (external_React_default()).PureComponent {
contextMenuKeyboard
} = this.state;
return /*#__PURE__*/external_React_default().createElement((external_React_default()).Fragment, null, /*#__PURE__*/external_React_default().createElement("button", {
- "aria-haspopup": "true",
+ "aria-haspopup": "menu",
+ "aria-expanded": showContextMenu,
"data-l10n-id": tooltip,
"data-l10n-args": tooltipArgs ? JSON.stringify(tooltipArgs) : null,
className: "context-menu-button icon",