diff --git a/list/internal/list.ts b/list/internal/list.ts index ce850c8a05..1709fbf07f 100644 --- a/list/internal/list.ts +++ b/list/internal/list.ts @@ -7,7 +7,7 @@ import {html, LitElement, nothing} from 'lit'; import {property, query, queryAssignedElements} from 'lit/decorators.js'; -import {ARIAMixinStrict, ARIARole} from '../../internal/aria/aria.js'; +import {ARIAMixinStrict} from '../../internal/aria/aria.js'; import {requestUpdateOnAriaChange} from '../../internal/aria/delegate.js'; import {ListItem} from './listitem/list-item.js'; @@ -46,7 +46,7 @@ export class List extends LitElement { static override shadowRootOptions: ShadowRootInit = {mode: 'open', delegatesFocus: true}; - @property() type: ARIARole|'' = 'list'; + @property() type: 'menu'|'menubar'|'listbox'|'list'|'' = 'list'; /** * The tabindex of the underlying list. diff --git a/menu/internal/menu.ts b/menu/internal/menu.ts index c692636e79..09c9c63fd4 100644 --- a/menu/internal/menu.ts +++ b/menu/internal/menu.ts @@ -13,7 +13,7 @@ import {eventOptions, property, query, state} from 'lit/decorators.js'; import {classMap} from 'lit/directives/class-map.js'; import {styleMap} from 'lit/directives/style-map.js'; -import {ARIAMixinStrict, ARIARole} from '../../internal/aria/aria.js'; +import {ARIAMixinStrict} from '../../internal/aria/aria.js'; import {requestUpdateOnAriaChange} from '../../internal/aria/delegate.js'; import {createAnimationSignal, EASING} from '../../internal/motion/animation.js'; import {List} from '../../list/internal/list.js'; @@ -126,7 +126,7 @@ export abstract class Menu extends LitElement { /** * The role of the underlying list element. */ - @property() type: ARIARole = 'menu'; + @property() type: 'menu'|'menubar'|'listbox'|'list' = 'menu'; /** * The max time between the keystrokes of the typeahead menu behavior before * it clears the typeahead buffer.