@brightspace-ui/core 3.317.1 → 3.317.3

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.
@@ -116,6 +116,7 @@ export const DialogMixin = superclass => class extends superclass {
116
116
  const ifrauDialogService = await tryGetIfrauBackdropService();
117
117
  if (this.opened) {
118
118
  if (ifrauDialogService) {
119
+ this.#ifrauDialogService = ifrauDialogService;
119
120
  this._ifrauContextInfo = await ifrauDialogService.showBackdrop();
120
121
  this._inIframe = true;
121
122
  }
@@ -125,6 +126,7 @@ export const DialogMixin = superclass => class extends superclass {
125
126
  ifrauDialogService.hideBackdrop();
126
127
  this._ifrauContextInfo = null;
127
128
  }
129
+ this.#ifrauDialogService = null;
128
130
  this._close();
129
131
  }
130
132
  }
@@ -165,6 +167,7 @@ export const DialogMixin = superclass => class extends superclass {
165
167
  }
166
168
 
167
169
  #useNativeInitialized = false;
170
+ #ifrauDialogService = null;
168
171
 
169
172
  #handleMvcDialogOpen = () => {
170
173
  // native dialogs on top layer will be stacked on non-native dialogs regardless of z-index
@@ -182,6 +185,7 @@ export const DialogMixin = superclass => class extends superclass {
182
185
  };
183
186
 
184
187
  #updateSize = async() => {
188
+ if (this._inIframe && this.#ifrauDialogService) this._ifrauContextInfo = await this.#ifrauDialogService.getContextInfo();
185
189
  if (this._autoSize) {
186
190
  if (this._ifrauContextInfo) {
187
191
  if (this._ifrauContextInfo.top > defaultMargin.top) {
@@ -1,5 +1,8 @@
1
1
  import '../colors/colors.js';
2
- import { css } from 'lit';
2
+ import { css, unsafeCSS } from 'lit';
3
+ import { getFlag } from '../../helpers/flags.js';
4
+
5
+ const overflowWrapValue = unsafeCSS(getFlag('GAUD-10606-overflow-wrap-anywhere', true) ? 'anywhere' : 'normal');
3
6
 
4
7
  export const meterStyles = css`
5
8
  .d2l-meter-container {
@@ -28,6 +31,7 @@ export const meterStyles = css`
28
31
  color: var(--d2l-color-ferrite);
29
32
  fill: var(--d2l-color-ferrite);
30
33
  line-height: 0.8rem;
34
+ overflow-wrap: ${overflowWrapValue};
31
35
  text-align: center;
32
36
  }
33
37
  :host([foreground-light]) .d2l-meter-text {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.317.1",
3
+ "version": "3.317.3",
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",