@brightspace-ui/core 3.98.1 → 3.98.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.
@@ -66,7 +66,6 @@ class ButtonIcon extends PropertyRequiredMixin(ThemeMixin(ButtonMixin(VisibleOnA
66
66
  --d2l-button-icon-min-height: calc(2rem + 2px);
67
67
  --d2l-button-icon-min-width: calc(2rem + 2px);
68
68
  --d2l-button-icon-h-align: calc(((2rem + 2px - 0.9rem) / 2) * -1);
69
- --d2l-icon-fill-color: var(--d2l-button-icon-fill-color, var(--d2l-color-tungsten));
70
69
  display: inline-block;
71
70
  line-height: 0;
72
71
  }
@@ -78,14 +77,14 @@ class ButtonIcon extends PropertyRequiredMixin(ThemeMixin(ButtonMixin(VisibleOnA
78
77
  --d2l-button-icon-background-color-hover: var(--d2l-color-celestine);
79
78
  --d2l-button-focus-color: white;
80
79
  --d2l-button-focus-offset: -4px;
81
- --d2l-icon-fill-color: white;
80
+ --d2l-button-icon-fill-color: white;
82
81
  --d2l-button-icon-fill-color-hover: white;
83
82
  }
84
83
  :host([theme="dark"]) {
85
84
  --d2l-button-icon-background-color: transparent;
86
85
  --d2l-button-icon-background-color-hover: rgba(51, 53, 54, 0.9); /* tungsten @70% @90% */
87
86
  --d2l-button-focus-color: var(--d2l-color-celestine-plus-1);
88
- --d2l-icon-fill-color: var(--d2l-color-sylvite);
87
+ --d2l-button-icon-fill-color: var(--d2l-color-sylvite);
89
88
  --d2l-button-icon-fill-color-hover: var(--d2l-color-sylvite);
90
89
  }
91
90
 
@@ -115,7 +114,7 @@ class ButtonIcon extends PropertyRequiredMixin(ThemeMixin(ButtonMixin(VisibleOnA
115
114
  button:hover:not([disabled]),
116
115
  button:focus:not([disabled]),
117
116
  :host([active]) button:not([disabled]) {
118
- --d2l-icon-fill-color: var(--d2l-button-icon-fill-color-hover, var(--d2l-color-tungsten));
117
+ --d2l-button-icon-fill-color: var(--d2l-button-icon-fill-color-hover, var(--d2l-color-tungsten));
119
118
  background-color: var(--d2l-button-icon-background-color-hover);
120
119
  }
121
120
 
@@ -128,6 +127,7 @@ class ButtonIcon extends PropertyRequiredMixin(ThemeMixin(ButtonMixin(VisibleOnA
128
127
 
129
128
  d2l-icon,
130
129
  slot[name="icon"]::slotted(d2l-icon-custom) {
130
+ color: var(--d2l-button-icon-fill-color, var(--d2l-color-tungsten));
131
131
  height: 0.9rem;
132
132
  width: 0.9rem;
133
133
  }
@@ -347,8 +347,10 @@ export const DropdownPopoverMixin = superclass => class extends LocalizeCoreElem
347
347
  this.#contentElement.scrollTop ??= 0;
348
348
  }
349
349
 
350
- /** Dispatched when the dropdown is opened */
351
- this.dispatchEvent(new CustomEvent('d2l-dropdown-open', { bubbles: true, composed: true }));
350
+ setTimeout(() => {
351
+ /** Dispatched when the dropdown is opened */
352
+ this.dispatchEvent(new CustomEvent('d2l-dropdown-open', { bubbles: true, composed: true }));
353
+ });
352
354
  }
353
355
 
354
356
  #handlePopoverPosition() {
@@ -61,6 +61,16 @@ class HtmlBlockMathRenderer {
61
61
  elm.style.height = '0.5rem';
62
62
  });
63
63
 
64
+ // WIRIS outputs bad syntax for empty sub/superscripts, but changing these on write
65
+ // can be risky. Instead, change them on render to minimize potential damage if this
66
+ // impacts legitimate usages.
67
+ if (context.replaceNoneSubSuperScripts) {
68
+ elem.querySelectorAll('math mmultiscripts > none').forEach(elm => {
69
+ const mrow = document.createElementNS('http://www.w3.org/1998/Math/MathML', 'mrow');
70
+ elm.replaceWith(mrow);
71
+ });
72
+ }
73
+
64
74
  // If we're using deferred rendering, we need to create a document structure
65
75
  // within the element so MathJax can appropriately process math.
66
76
  if (!options.noDeferredRendering) elem.innerHTML = `<mjx-doc><mjx-head></mjx-head><mjx-body>${elem.innerHTML}</mjx-body></mjx-doc>`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.98.1",
3
+ "version": "3.98.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",
@@ -60,7 +60,7 @@
60
60
  "rollup-plugin-copy": "^3",
61
61
  "rollup-plugin-delete": "^3",
62
62
  "sass": "^1",
63
- "sinon": "^19",
63
+ "sinon": "^20",
64
64
  "stylelint": "^16",
65
65
  "web-component-analyzer": "^2"
66
66
  },