@brightspace-ui/core 3.235.0 → 3.235.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.
@@ -57,7 +57,7 @@ class LoadingBackdrop extends PropertyRequiredMixin(LocalizeCoreElement(LitEleme
57
57
  }
58
58
 
59
59
  .backdrop {
60
- background-color: var(--d2l-color-regolith);
60
+ background-color: var(--d2l-theme-backdrop-background-color);
61
61
  height: 100%;
62
62
  opacity: 0;
63
63
  position: absolute;
@@ -65,7 +65,7 @@ class LoadingBackdrop extends PropertyRequiredMixin(LocalizeCoreElement(LitEleme
65
65
  width: 100%;
66
66
  }
67
67
  :host([_state="shown"]) .backdrop {
68
- opacity: 0.7;
68
+ opacity: var(--d2l-theme-backdrop-opacity);
69
69
  transition: opacity ${FADE_DURATION_MS}ms ease-in;
70
70
  }
71
71
  :host([_state="hiding"]) .backdrop {
@@ -46,7 +46,7 @@ class Backdrop extends LitElement {
46
46
  static get styles() {
47
47
  return [ css`
48
48
  :host {
49
- background-color: var(--d2l-color-regolith);
49
+ background-color: var(--d2l-theme-backdrop-background-color);
50
50
  height: 0;
51
51
  left: 0;
52
52
  opacity: 0;
@@ -60,7 +60,7 @@ class Backdrop extends LitElement {
60
60
  transition: opacity 1200ms ease-in;
61
61
  }
62
62
  :host([_state="showing"]) {
63
- opacity: 0.7;
63
+ opacity: var(--d2l-theme-backdrop-opacity);
64
64
  }
65
65
  :host([_state="showing"]),
66
66
  :host([_state="hiding"]) {
@@ -111,6 +111,8 @@ const lightVariables = new Map([
111
111
  ['--d2l-theme-text-color-static-standard', '--d2l-color-ferrite'],
112
112
  ['--d2l-theme-text-color-static-subtle', '--d2l-color-tungsten'],
113
113
  // figma - undefined
114
+ ['--d2l-theme-backdrop-background-color', '--d2l-color-regolith'],
115
+ ['--d2l-theme-backdrop-opacity', '0.7'],
114
116
  ['--d2l-theme-background-color-interactive-faint-disabled', '#f9fbff80'], /* --d2l-theme-background-color-interactive-faint-default at 50% opacity, remove once color-mix is widely supported */
115
117
  ['--d2l-theme-badge-background-color', '--d2l-color-gypsum'],
116
118
  ['--d2l-theme-badge-text-color', '--d2l-theme-text-color-static-standard'],
@@ -183,6 +185,8 @@ const darkVariables = new Map([
183
185
  ['--d2l-theme-text-color-static-standard', '--d2l-color-mica'],
184
186
  ['--d2l-theme-text-color-static-subtle', '--d2l-color-chromite'],
185
187
  // figma - undefined
188
+ ['--d2l-theme-backdrop-background-color', '--d2l-color-ferrite'],
189
+ ['--d2l-theme-backdrop-opacity', '0.7'],
186
190
  ['--d2l-theme-background-color-interactive-faint-disabled', '#20212280'], /* --d2l-theme-background-color-interactive-faint-default at 50% opacity, remove once color-mix is widely supported */
187
191
  ['--d2l-theme-badge-background-color', '#303335'],
188
192
  ['--d2l-theme-badge-text-color', '--d2l-theme-text-color-static-standard'],
@@ -1,7 +1,6 @@
1
1
  import '../colors/colors.js';
2
2
  import { css, html, nothing } from 'lit';
3
3
  import { isInteractiveInListItemComposedPath, ListItemMixin } from './list-item-mixin.js';
4
- import { getFlag } from '../../helpers/flags.js';
5
4
  import { getUniqueId } from '../../helpers/uniqueId.js';
6
5
  import { ifDefined } from 'lit/directives/if-defined.js';
7
6
 
@@ -46,7 +45,6 @@ export const ListItemLinkMixin = superclass => class extends ListItemMixin(super
46
45
  super();
47
46
  this.actionHref = null;
48
47
  this._primaryActionId = getUniqueId();
49
- this._propagateLinkClickEvent = getFlag('GAUD-8733-list-item-propagate-link-click-event', true);
50
48
  }
51
49
 
52
50
  willUpdate(changedProperties) {
@@ -65,18 +63,6 @@ export const ListItemLinkMixin = superclass => class extends ListItemMixin(super
65
63
  } else {
66
64
  /** Dispatched when the item's primary link action is clicked */
67
65
  this.dispatchEvent(new CustomEvent('d2l-list-item-link-click', { bubbles: true }));
68
-
69
- if (!this._propagateLinkClickEvent) {
70
- e.stopPropagation();
71
-
72
- // Dispatches click event from the list item to maintain existing functionality in consumers that listen for the click event
73
- const listItemClickEvent = new e.constructor(e.type, e);
74
- listItemClickEvent.preventDefault = () => {
75
- e.preventDefault();
76
- };
77
- /** @ignore */
78
- this.dispatchEvent(listItemClickEvent);
79
- }
80
66
  }
81
67
  }
82
68
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.235.0",
3
+ "version": "3.235.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",