@brightspace-ui/core 3.102.1 → 3.102.2

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.
@@ -2,13 +2,12 @@ import '../icons/icon.js';
2
2
  import { html, LitElement } from 'lit';
3
3
  import { MenuItemSelectableMixin } from './menu-item-selectable-mixin.js';
4
4
  import { menuItemSelectableStyles } from './menu-item-selectable-styles.js';
5
- import { RtlMixin } from '../../mixins/rtl/rtl-mixin.js';
6
5
 
7
6
  /**
8
7
  * A menu item component used for selection. Multiple checkboxes can be selected at once.
9
8
  * @slot supporting - Allows supporting information to be displayed on the right-most side of the menu item
10
9
  */
11
- class MenuItemCheckbox extends RtlMixin(MenuItemSelectableMixin(LitElement)) {
10
+ class MenuItemCheckbox extends MenuItemSelectableMixin(LitElement) {
12
11
 
13
12
  static get styles() {
14
13
  return menuItemSelectableStyles;
@@ -2,13 +2,12 @@ import '../icons/icon.js';
2
2
  import { html, LitElement } from 'lit';
3
3
  import { MenuItemRadioMixin } from './menu-item-radio-mixin.js';
4
4
  import { menuItemSelectableStyles } from './menu-item-selectable-styles.js';
5
- import { RtlMixin } from '../../mixins/rtl/rtl-mixin.js';
6
5
 
7
6
  /**
8
7
  * A menu item component used for radio selection. Only one radio item in a given d2l-menu may be selected at once (i.e., selecting one option will deselect the other selected "d2l-menu-item-radio" item).
9
8
  * @slot supporting - Allows supporting information to be displayed on the right-most side of the menu item
10
9
  */
11
- class MenuItemRadio extends RtlMixin(MenuItemRadioMixin(LitElement)) {
10
+ class MenuItemRadio extends MenuItemRadioMixin(LitElement) {
12
11
 
13
12
  static get styles() {
14
13
  return menuItemSelectableStyles;
@@ -3,9 +3,8 @@ import { css, html, LitElement } from 'lit';
3
3
  import { LocalizeCoreElement } from '../../helpers/localize-core-element.js';
4
4
  import { MenuItemMixin } from './menu-item-mixin.js';
5
5
  import { menuItemStyles } from './menu-item-styles.js';
6
- import { RtlMixin } from '../../mixins/rtl/rtl-mixin.js';
7
6
 
8
- class MenuItemReturn extends RtlMixin(LocalizeCoreElement(MenuItemMixin(LitElement))) {
7
+ class MenuItemReturn extends LocalizeCoreElement(MenuItemMixin(LitElement)) {
9
8
 
10
9
  static get styles() {
11
10
  return [ menuItemStyles,
@@ -27,14 +26,9 @@ class MenuItemReturn extends RtlMixin(LocalizeCoreElement(MenuItemMixin(LitEleme
27
26
 
28
27
  d2l-icon {
29
28
  flex: none;
30
- margin-right: 1rem;
29
+ margin-inline-end: 1rem;
31
30
  margin-top: 0.1rem;
32
31
  }
33
-
34
- :host([dir="rtl"]) > d2l-icon {
35
- margin-left: 1rem;
36
- margin-right: 0;
37
- }
38
32
  `
39
33
  ];
40
34
  }
@@ -16,15 +16,10 @@ export const menuItemSelectableStyles = [ menuItemStyles,
16
16
 
17
17
  d2l-icon {
18
18
  flex: none;
19
- margin-right: 0.8rem;
19
+ margin-inline-end: 0.8rem;
20
20
  visibility: hidden;
21
21
  }
22
22
 
23
- :host([dir="rtl"]) > d2l-icon {
24
- margin-left: 0.8rem;
25
- margin-right: 0;
26
- }
27
-
28
23
  :host([aria-checked="true"]) > d2l-icon {
29
24
  visibility: visible;
30
25
  }
@@ -65,10 +65,6 @@ export const menuItemStyles = css`
65
65
  .d2l-menu-item-supporting {
66
66
  flex: 0 0 auto;
67
67
  line-height: 1rem;
68
- margin-left: 6px;
69
- }
70
- :host([dir="rtl"]) .d2l-menu-item-supporting {
71
- margin-left: 0;
72
- margin-right: 6px;
68
+ margin-inline-start: 6px;
73
69
  }
74
70
  `;
@@ -18,14 +18,9 @@ class MenuItem extends MenuItemMixin(LitElement) {
18
18
  display: flex;
19
19
  padding: 0.75rem 1rem;
20
20
  }
21
-
22
21
  d2l-icon {
23
22
  flex: none;
24
- margin-left: 6px;
25
- }
26
- :host([dir="rtl"]) d2l-icon {
27
- margin-left: 0;
28
- margin-right: 6px;
23
+ margin-inline-start: 6px;
29
24
  }
30
25
  `
31
26
  ];
@@ -23,11 +23,7 @@ class ActionMenuItem extends SelectionActionMixin(MenuItemMixin(LitElement)) {
23
23
  }
24
24
  d2l-icon {
25
25
  flex: none;
26
- margin-left: 6px;
27
- }
28
- :host([dir="rtl"]) d2l-icon {
29
- margin-left: 0;
30
- margin-right: 6px;
26
+ margin-inline-start: 6px;
31
27
  }
32
28
  `
33
29
  ];
@@ -2,7 +2,6 @@ import '../icons/icon.js';
2
2
  import { html, LitElement } from 'lit';
3
3
  import { MenuItemRadioMixin } from '../menu/menu-item-radio-mixin.js';
4
4
  import { menuItemSelectableStyles } from '../menu/menu-item-selectable-styles.js';
5
- import { RtlMixin } from '../../mixins/rtl/rtl-mixin.js';
6
5
 
7
6
  /**
8
7
  * A radio menu item to be used within the d2l-table-col-sort-button component for a multi-faceted sort.
@@ -10,7 +9,7 @@ import { RtlMixin } from '../../mixins/rtl/rtl-mixin.js';
10
9
  * @fires d2l-menu-item-select - Internal event
11
10
  * @fires d2l-menu-item-visibility-change - Internal event
12
11
  */
13
- class TableColSortButtonItem extends RtlMixin(MenuItemRadioMixin(LitElement)) {
12
+ class TableColSortButtonItem extends MenuItemRadioMixin(LitElement) {
14
13
 
15
14
  static get styles() {
16
15
  return menuItemSelectableStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.102.1",
3
+ "version": "3.102.2",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/BrightspaceUI/core.git",