@momentum-design/components 0.83.5 → 0.83.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.
@@ -6,8 +6,8 @@ export { default as AvatarButton } from './avatarbutton';
6
6
  export { default as Badge } from './badge';
7
7
  export { default as Brandvisual } from './brandvisual';
8
8
  export { default as Bullet } from './bullet';
9
- export { default as ButtonGroup } from './buttongroup';
10
9
  export { default as Button } from './button';
10
+ export { default as ButtonGroup } from './buttongroup';
11
11
  export { default as ButtonLink } from './buttonlink';
12
12
  export { default as Buttonsimple } from './buttonsimple';
13
13
  export { default as Card } from './card';
@@ -6,8 +6,8 @@ export { default as AvatarButton } from './avatarbutton';
6
6
  export { default as Badge } from './badge';
7
7
  export { default as Brandvisual } from './brandvisual';
8
8
  export { default as Bullet } from './bullet';
9
- export { default as ButtonGroup } from './buttongroup';
10
9
  export { default as Button } from './button';
10
+ export { default as ButtonGroup } from './buttongroup';
11
11
  export { default as ButtonLink } from './buttonlink';
12
12
  export { default as Buttonsimple } from './buttonsimple';
13
13
  export { default as Card } from './card';
@@ -294,7 +294,10 @@ export const MenuMixin = (superClass) => {
294
294
  * @returns True if the menu item is a valid menu item, false otherwise.
295
295
  */
296
296
  isValidMenuItem(menuItem) {
297
- return menuItem.getAttribute('role') === ROLE.MENUITEM;
297
+ const validRoles = [ROLE.MENUITEM, ROLE.MENUITEMCHECKBOX, ROLE.MENUITEMRADIO];
298
+ const role = menuItem.getAttribute('role');
299
+ return role !== null
300
+ && validRoles.includes(role);
298
301
  }
299
302
  /**
300
303
  * Resets all list items tabindex to -1 and sets the tabindex of the
package/package.json CHANGED
@@ -41,5 +41,5 @@
41
41
  "lottie-web": "^5.12.2",
42
42
  "uuid": "^11.0.5"
43
43
  },
44
- "version": "0.83.5"
44
+ "version": "0.83.6"
45
45
  }