@vollowx/seele 0.8.5 → 0.8.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/base/menu.js +2 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vollowx/seele",
3
- "version": "0.8.5",
3
+ "version": "0.8.6",
4
4
  "description": "Standard Extensible Elements. A web components library that can be styled and extended freely, pre-providing components in Material Design 3.",
5
5
  "author": "vollowx",
6
6
  "license": "MIT",
package/src/base/menu.js CHANGED
@@ -3,7 +3,7 @@ import { LitElement, html } from 'lit';
3
3
  import { property, query } from 'lit/decorators.js';
4
4
  import { setFocusVisible } from '../core/focus-visible.js';
5
5
  import { Attachable } from './mixins/attachable.js';
6
- import { internals, InternalsAttached } from './mixins/internals-attached.js';
6
+ import { InternalsAttached } from './mixins/internals-attached.js';
7
7
  import { PopoverController } from './controllers/popover-controller.js';
8
8
  import { ListController } from './controllers/list-controller.js';
9
9
  import { MenuActions, getActionFromKey, getUpdatedIndex, scrollItemIntoView, } from './menu-utils.js';
@@ -86,11 +86,8 @@ export class Menu extends Base {
86
86
  connectedCallback() {
87
87
  super.connectedCallback();
88
88
  if (this.$control) {
89
+ // TODO: Manage $control ARIA attributes
89
90
  // TODO: Handle $control change
90
- this.$control.ariaHasPopup = 'true';
91
- this.$control.ariaExpanded = 'false';
92
- this.$control.ariaControlsElements = [this.$menu];
93
- this[internals].ariaLabelledByElements = [this.$control];
94
91
  this.$control.addEventListener('focusout', this.#handleFocusOut.bind(this));
95
92
  }
96
93
  this.listController.items.forEach((item) => {