@momentum-design/components 0.76.4 → 0.76.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.
@@ -39,7 +39,6 @@ class FormfieldGroup extends DataAriaLabelMixin(FormfieldWrapper) {
39
39
  /** @internal */
40
40
  this.shouldRenderLabel = false;
41
41
  this.id = '';
42
- this.helpTextType = undefined;
43
42
  this.disabled = undefined;
44
43
  }
45
44
  render() {
@@ -1,5 +1,6 @@
1
1
  import FormfieldGroup from './formfieldgroup.component';
2
2
  import '../text';
3
+ import '../icon';
3
4
  declare global {
4
5
  interface HTMLElementTagNameMap {
5
6
  ['mdc-formfieldgroup']: FormfieldGroup;
@@ -1,5 +1,6 @@
1
1
  import FormfieldGroup from './formfieldgroup.component';
2
2
  import { TAG_NAME } from './formfieldgroup.constants';
3
3
  import '../text';
4
+ import '../icon';
4
5
  FormfieldGroup.register(TAG_NAME);
5
6
  export default FormfieldGroup;
@@ -24,7 +24,6 @@ declare const MenuBar_base: import("../../utils/mixins/index.types").Constructor
24
24
  declare class MenuBar extends MenuBar_base {
25
25
  constructor();
26
26
  connectedCallback(): void;
27
- firstUpdated(): void;
28
27
  update(changedProperties: PropertyValues): void;
29
28
  render(): import("lit-html").TemplateResult<1>;
30
29
  static styles: Array<CSSResult>;
@@ -33,10 +33,6 @@ class MenuBar extends MenuMixin(Component) {
33
33
  super.connectedCallback();
34
34
  this.role = ROLE.MENUBAR;
35
35
  }
36
- firstUpdated() {
37
- // For the first, we set the first element only as active.
38
- this.resetTabIndexAndSetActiveTabIndex(0);
39
- }
40
36
  update(changedProperties) {
41
37
  super.update(changedProperties);
42
38
  if (changedProperties.has('ariaOrientation')) {
@@ -43,9 +43,10 @@ class MenuPopover extends MenuMixin(Popover) {
43
43
  this.ariaOrientation = ORIENTATION.VERTICAL;
44
44
  }
45
45
  async firstUpdated(changedProperties) {
46
- var _a, _b;
46
+ var _a, _b, _c;
47
47
  await super.firstUpdated(changedProperties);
48
- if (((_b = (_a = this.parentElement) === null || _a === void 0 ? void 0 : _a.tagName) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === MENU_POPOVER) {
48
+ (_a = this.triggerElement) === null || _a === void 0 ? void 0 : _a.setAttribute('aria-haspopup', ROLE.MENU);
49
+ if (((_c = (_b = this.parentElement) === null || _b === void 0 ? void 0 : _b.tagName) === null || _c === void 0 ? void 0 : _c.toLowerCase()) === MENU_POPOVER) {
49
50
  this.interactive = true;
50
51
  this.placement = POPOVER_PLACEMENT.RIGHT_START;
51
52
  }
@@ -496,11 +496,9 @@ class Popover extends FocusTrapMixin(Component) {
496
496
  if (!this.disableAriaExpanded) {
497
497
  this.triggerElement.removeAttribute('aria-expanded');
498
498
  }
499
- if (this.interactive) {
500
- const triggerElementRole = this.triggerElement.getAttribute('aria-haspopup');
501
- if (triggerElementRole === 'dialog' || triggerElementRole === 'alertdialog') {
502
- this.triggerElement.removeAttribute('aria-haspopup');
503
- }
499
+ // Remove aria-haspopup if the popover is not interactive
500
+ if (!this.interactive) {
501
+ this.triggerElement.removeAttribute('aria-haspopup');
504
502
  }
505
503
  if (this.focusBackToTrigger) {
506
504
  (_c = this.triggerElement) === null || _c === void 0 ? void 0 : _c.focus();