@umbraco-ui/uui-menu-item 1.8.0-rc.1 → 1.8.0

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.
package/lib/index.js CHANGED
@@ -60,6 +60,10 @@ let UUIMenuItemElement = class extends SelectOnlyMixin(
60
60
  demandCustomElement(this, "uui-symbol-expand");
61
61
  demandCustomElement(this, "uui-loader-bar");
62
62
  }
63
+ async focus() {
64
+ await this.updateComplete;
65
+ this.shadowRoot?.querySelector("#label-button")?.focus?.();
66
+ }
63
67
  _renderLabelInside() {
64
68
  return html` <slot
65
69
  name="icon"
@@ -409,13 +413,14 @@ UUIMenuItemElement.styles = [
409
413
 
410
414
  #actions-container {
411
415
  opacity: 0;
412
- transition: opacity 120ms;
416
+ width: 0;
413
417
  grid-column-start: 3;
414
418
  }
415
419
  :host(:not([disabled])) #menu-item:hover #actions-container,
416
420
  :host(:not([disabled])) #menu-item:focus #actions-container,
417
421
  :host(:not([disabled])) #menu-item:focus-within #actions-container {
418
422
  opacity: 1;
423
+ width: auto;
419
424
  }
420
425
 
421
426
  #loader {
@@ -73,6 +73,7 @@ export declare class UUIMenuItemElement extends UUIMenuItemElement_base {
73
73
  selectMode?: 'highlight' | 'persisting';
74
74
  private iconSlotHasContent;
75
75
  connectedCallback(): void;
76
+ focus(): Promise<void>;
76
77
  private _labelButtonChanged;
77
78
  private _iconSlotChanged;
78
79
  private _onCaretClicked;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umbraco-ui/uui-menu-item",
3
- "version": "1.8.0-rc.1",
3
+ "version": "1.8.0",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "Umbraco",
@@ -30,9 +30,9 @@
30
30
  "custom-elements.json"
31
31
  ],
32
32
  "dependencies": {
33
- "@umbraco-ui/uui-base": "1.8.0-rc.0",
34
- "@umbraco-ui/uui-loader-bar": "1.8.0-rc.0",
35
- "@umbraco-ui/uui-symbol-expand": "1.8.0-rc.0"
33
+ "@umbraco-ui/uui-base": "1.8.0",
34
+ "@umbraco-ui/uui-loader-bar": "1.8.0",
35
+ "@umbraco-ui/uui-symbol-expand": "1.8.0"
36
36
  },
37
37
  "scripts": {
38
38
  "build": "npm run analyze && tsc --build && rollup -c rollup.config.js",
@@ -43,5 +43,5 @@
43
43
  "access": "public"
44
44
  },
45
45
  "homepage": "https://uui.umbraco.com/?path=/story/uui-menu-item",
46
- "gitHead": "0bb90095d63ffffb02f46691bb83568512dafefe"
46
+ "gitHead": "53021762a52dc54a46f0c5ef829c1cbaabde1160"
47
47
  }