Skip to content

Commit 05e1688

Browse files
committed
fix: menu button narration
1 parent 6120d87 commit 05e1688

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

packages/mgt-components/src/components/sub-components/mgt-arrow-options/mgt-arrow-options.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ export class MgtArrowOptions extends MgtBaseTaskComponent {
151151
class="header"
152152
@click=${this.onHeaderClick}
153153
@keydown=${this.onHeaderKeyDown}
154-
appearance="lightweight">
154+
appearance="lightweight"
155+
aria-haspopup="true"
156+
aria-expanded=${this.open}>
155157
${this.value}
156158
</fluent-button>
157159
<fluent-menu

packages/mgt-components/src/components/sub-components/mgt-dot-options/mgt-dot-options.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ export class MgtDotOptions extends MgtBaseTaskComponent {
9898
aria-expanded=${this.open}
9999
@click=${this.onDotClick}
100100
@keydown=${this.onDotKeydown}
101-
class="dot-icon">${getSvg(SvgIcon.Dot)}</fluent-button>
101+
class="dot-icon"
102+
aria-haspopup="true"
103+
aria-expanded=${this.open}>${getSvg(SvgIcon.Dot)}</fluent-button>
102104
<fluent-menu class=${classMap({ menu: true, open: this.open })} aria-expanded=${this.open} aria-label=${this.strings.dotOptionsTitle}>
103105
${menuOptions.map(opt => this.getMenuOption(opt, this.options[opt]))}
104106
</fluent-menu>`;

0 commit comments

Comments
 (0)