@brightspace-ui/core 3.126.0 → 3.126.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.
@@ -1,5 +1,5 @@
|
|
1
1
|
if (globalThis.document !== undefined && !globalThis.document.head.querySelector('#d2l-colors')) {
|
2
|
-
const style = document.createElement('style');
|
2
|
+
const style = globalThis.document.createElement('style');
|
3
3
|
style.id = 'd2l-colors';
|
4
4
|
style.textContent = `
|
5
5
|
html {
|
@@ -91,5 +91,5 @@ if (globalThis.document !== undefined && !globalThis.document.head.querySelector
|
|
91
91
|
--d2l-color-feedback-action: var(--d2l-color-celestine);
|
92
92
|
}
|
93
93
|
`;
|
94
|
-
document.head.appendChild(style);
|
94
|
+
globalThis.document.head.appendChild(style);
|
95
95
|
}
|
@@ -306,7 +306,7 @@ export const _generateBlockquoteStyles = (selector) => {
|
|
306
306
|
inset-block-start: 0;
|
307
307
|
inset-inline-start: 0;
|
308
308
|
position: absolute;
|
309
|
-
transform: var(--d2l-mirror-transform, ${document.dir === 'rtl' ? css`scale(-1, 1)` : css`none`}); /* stylelint-disable-line @stylistic/string-quotes, @stylistic/function-whitespace-after */
|
309
|
+
transform: var(--d2l-mirror-transform, ${globalThis.document.dir === 'rtl' ? css`scale(-1, 1)` : css`none`}); /* stylelint-disable-line @stylistic/string-quotes, @stylistic/function-whitespace-after */
|
310
310
|
}
|
311
311
|
@media (max-width: 615px) {
|
312
312
|
${selector} {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@brightspace-ui/core",
|
3
|
-
"version": "3.126.
|
3
|
+
"version": "3.126.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",
|
@@ -54,6 +54,7 @@
|
|
54
54
|
"chalk": "^5",
|
55
55
|
"eslint": "^9",
|
56
56
|
"eslint-config-brightspace": "^2.0.0",
|
57
|
+
"eslint-plugin-unicorn": "^59",
|
57
58
|
"glob-all": "^3",
|
58
59
|
"messageformat-validator": "^2",
|
59
60
|
"rollup": "^4",
|