Skip to content

Commit b8e7e3b

Browse files
committed
fixup! feat(aria/ui-patterns): add initial menu pattern
1 parent 536452c commit b8e7e3b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/aria/ui-patterns/menu/menu.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export class MenuPattern<V> {
146146
.on(this.typeaheadRegexp, e => this.listBehavior.search(e.key));
147147
});
148148

149-
constructor(public readonly inputs: MenuInputs<V>) {
149+
constructor(readonly inputs: MenuInputs<V>) {
150150
this.id = inputs.id;
151151
this.listBehavior = new List<MenuItemPattern<V>, V>({
152152
...inputs,
@@ -403,7 +403,7 @@ export class MenuBarPattern<V> {
403403
.on(this.typeaheadRegexp, e => this.listBehavior.search(e.key));
404404
});
405405

406-
constructor(public readonly inputs: MenuBarInputs<V>) {
406+
constructor(readonly inputs: MenuBarInputs<V>) {
407407
this.listBehavior = new List<MenuItemPattern<V>, V>({...inputs, disabled: () => false});
408408
}
409409

@@ -527,7 +527,7 @@ export class MenuTriggerPattern<V> {
527527
.on('Escape', () => this.close({refocus: true}));
528528
});
529529

530-
constructor(public readonly inputs: MenuTriggerInputs<V>) {
530+
constructor(readonly inputs: MenuTriggerInputs<V>) {
531531
this.submenu = this.inputs.submenu;
532532
}
533533

@@ -635,7 +635,7 @@ export class MenuItemPattern<V> implements ListItem<V> {
635635
/** The submenu associated with the menu item. */
636636
submenu: SignalLike<MenuPattern<V> | undefined>;
637637

638-
constructor(public readonly inputs: MenuItemInputs<V>) {
638+
constructor(readonly inputs: MenuItemInputs<V>) {
639639
this.id = inputs.id;
640640
this.value = inputs.value;
641641
this.element = inputs.element;

0 commit comments

Comments
 (0)