Skip to content

Commit df5805f

Browse files
committed
add menu-list
1 parent b9c2be1 commit df5805f

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { Updates } from '@microsoft/fast-element';
2+
import { polyfill as focusgroupPolyfill } from '@microsoft/focusgroup-polyfill';
3+
import { BaseMenuList } from './menu-list.base';
4+
5+
/**
6+
* A MenuList Custom HTML Element.
7+
* Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#menu | ARIA menu }.
8+
*
9+
* @tag fluent-menu-list
10+
*
11+
* @slot - The default slot for the menu items
12+
*
13+
* @public
14+
*/
15+
export class MenuList extends BaseMenuList {
16+
public connectedCallback(): void {
17+
super.connectedCallback();
18+
19+
Updates.enqueue(() => {
20+
focusgroupPolyfill(this);
21+
});
22+
}
23+
}

0 commit comments

Comments
 (0)