@brightspace-ui/core 3.236.0 → 3.237.1

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.
@@ -60,7 +60,10 @@ class DemoPageSettings extends LitElement {
60
60
  } else {
61
61
  this._language = getDocumentLocaleSettings().language;
62
62
  }
63
+
63
64
  this._colorMode = document.documentElement.dataset.colorMode || defaultColorMode;
65
+
66
+ this.#updateColorSchemeMeta();
64
67
  }
65
68
 
66
69
  connectedCallback() {
@@ -176,6 +179,8 @@ class DemoPageSettings extends LitElement {
176
179
  this.#updateDefaultColorMode(newColorMode);
177
180
  }
178
181
 
182
+ this.#updateColorSchemeMeta();
183
+
179
184
  url.searchParams.set('color-mode', newColorMode);
180
185
  window.history.replaceState({}, '', url.toString());
181
186
  }
@@ -208,6 +213,18 @@ class DemoPageSettings extends LitElement {
208
213
  }
209
214
  }
210
215
 
216
+ #updateColorSchemeMeta() {
217
+ let elem = document.querySelector('meta[name="color-scheme"]');
218
+ if (!elem) {
219
+ elem = document.createElement('meta');
220
+ elem.name = 'color-scheme';
221
+ document.head.insertBefore(elem, document.head.firstChild);
222
+ }
223
+ if (document.documentElement.dataset.colorMode === 'dark') elem.content = 'dark';
224
+ else if (document.documentElement.dataset.colorMode === 'os') elem.content = 'light dark';
225
+ else elem.content = 'light';
226
+ }
227
+
211
228
  #updateDefaultColorMode(colorMode) {
212
229
  localStorage.setItem('color-mode', colorMode);
213
230
  }
@@ -311,6 +311,7 @@ class InputCheckbox extends FormElementMixin(InputInlineHelpMixin(FocusMixin(Ske
311
311
  willUpdate(changedProperties) {
312
312
  super.willUpdate(changedProperties);
313
313
  if (changedProperties.has('ariaLabel') && this.ariaLabel !== undefined) {
314
+ console.error('d2l-input-checkbox: the ariaLabel property is no longer supported. Use the label property with label-hidden instead.');
314
315
  this.label = this.ariaLabel;
315
316
  this.labelHidden = true;
316
317
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.236.0",
3
+ "version": "3.237.1",
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",