@brightspace-ui/core 3.227.16 → 3.228.0
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.
|
@@ -210,7 +210,7 @@ class Calendar extends LocalizeCoreElement(LitElement) {
|
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
th {
|
|
213
|
-
border-bottom: 1px solid var(--d2l-color-
|
|
213
|
+
border-bottom: 1px solid var(--d2l-theme-border-color-subtle);
|
|
214
214
|
padding-bottom: 0.6rem;
|
|
215
215
|
padding-top: 0.3rem;
|
|
216
216
|
text-align: center;
|
|
@@ -262,11 +262,11 @@ class Calendar extends LocalizeCoreElement(LitElement) {
|
|
|
262
262
|
|
|
263
263
|
.d2l-calendar-date {
|
|
264
264
|
align-items: center;
|
|
265
|
-
background-color:
|
|
265
|
+
background-color: var(--d2l-theme-background-color-base);
|
|
266
266
|
border-radius: 0.3rem;
|
|
267
267
|
border-style: none;
|
|
268
268
|
box-sizing: content-box;
|
|
269
|
-
color: var(--d2l-color-
|
|
269
|
+
color: var(--d2l-theme-text-color-static-standard);
|
|
270
270
|
cursor: pointer;
|
|
271
271
|
display: flex;
|
|
272
272
|
font-family: inherit;
|
|
@@ -304,7 +304,7 @@ class Calendar extends LocalizeCoreElement(LitElement) {
|
|
|
304
304
|
}
|
|
305
305
|
|
|
306
306
|
.d2l-calendar-date:disabled {
|
|
307
|
-
opacity:
|
|
307
|
+
opacity: var(--d2l-theme-opacity-disabled-control);
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
310
|
|
|
@@ -333,7 +333,7 @@ class Calendar extends LocalizeCoreElement(LitElement) {
|
|
|
333
333
|
}
|
|
334
334
|
|
|
335
335
|
.d2l-calendar-animating .d2l-calendar-date:disabled {
|
|
336
|
-
opacity:
|
|
336
|
+
opacity: var(--d2l-theme-opacity-disabled-control);
|
|
337
337
|
}
|
|
338
338
|
|
|
339
339
|
.d2l-calendar-next .d2l-heading-4,
|
|
@@ -358,7 +358,7 @@ class Calendar extends LocalizeCoreElement(LitElement) {
|
|
|
358
358
|
|
|
359
359
|
.d2l-calendar-date:enabled:not(.d2l-calendar-date-selected):hover,
|
|
360
360
|
.d2l-calendar-date:enabled:not(.d2l-calendar-date-selected).d2l-calendar-date-hover {
|
|
361
|
-
background-color: var(--d2l-color-
|
|
361
|
+
background-color: var(--d2l-theme-background-color-interactive-tertiary-hover);
|
|
362
362
|
}
|
|
363
363
|
|
|
364
364
|
td, .d2l-calendar-date:${unsafeCSS(getFocusPseudoClass())} {
|
|
@@ -366,12 +366,12 @@ class Calendar extends LocalizeCoreElement(LitElement) {
|
|
|
366
366
|
}
|
|
367
367
|
|
|
368
368
|
td:${unsafeCSS(getFocusPseudoClass())} .d2l-calendar-date:not(:disabled) {
|
|
369
|
-
outline: 2px solid var(--d2l-color-
|
|
369
|
+
outline: 2px solid var(--d2l-theme-border-color-focus);
|
|
370
370
|
}
|
|
371
371
|
|
|
372
372
|
@keyframes initial-focus {
|
|
373
373
|
from {
|
|
374
|
-
outline: 0 solid var(--d2l-color-
|
|
374
|
+
outline: 0 solid var(--d2l-theme-border-color-focus);
|
|
375
375
|
padding: 0;
|
|
376
376
|
}
|
|
377
377
|
}
|
|
@@ -388,19 +388,19 @@ class Calendar extends LocalizeCoreElement(LitElement) {
|
|
|
388
388
|
}
|
|
389
389
|
|
|
390
390
|
.d2l-calendar-date.d2l-calendar-date-selected {
|
|
391
|
-
background-color: var(--d2l-color-
|
|
392
|
-
outline: 1px solid var(--d2l-color-
|
|
391
|
+
background-color: var(--d2l-theme-background-color-interactive-highlighted);
|
|
392
|
+
outline: 1px solid var(--d2l-theme-border-color-focus);
|
|
393
393
|
}
|
|
394
394
|
|
|
395
395
|
.d2l-calendar-date.d2l-calendar-date-selected:disabled {
|
|
396
|
-
background-color:
|
|
397
|
-
color:
|
|
396
|
+
background-color: var(--d2l-theme-background-color-base);
|
|
397
|
+
color: var(--d2l-theme-text-color-static-disabled);
|
|
398
|
+
opacity: 1;
|
|
398
399
|
outline: none;
|
|
399
400
|
}
|
|
400
401
|
|
|
401
402
|
td:${unsafeCSS(getFocusPseudoClass())} .d2l-calendar-date.d2l-calendar-date-selected:disabled {
|
|
402
|
-
|
|
403
|
-
outline: 2px solid var(--d2l-color-celestine);
|
|
403
|
+
outline: 2px solid var(--d2l-theme-border-color-focus);
|
|
404
404
|
}
|
|
405
405
|
|
|
406
406
|
.d2l-calendar-date.d2l-calendar-date-today,
|
|
@@ -420,7 +420,7 @@ class Calendar extends LocalizeCoreElement(LitElement) {
|
|
|
420
420
|
}
|
|
421
421
|
|
|
422
422
|
.d2l-calendar-date-day-info::after {
|
|
423
|
-
background-color: var(--d2l-color-
|
|
423
|
+
background-color: var(--d2l-theme-brand-color-primary-default);
|
|
424
424
|
border-radius: 3px;
|
|
425
425
|
bottom: 4px;
|
|
426
426
|
content: "";
|
|
@@ -45,6 +45,7 @@ if (globalThis.document !== undefined && !globalThis.document.head.querySelector
|
|
|
45
45
|
--d2l-theme-text-color-interactive-hover: var(--d2l-theme-brand-color-primary-hover);
|
|
46
46
|
--d2l-theme-text-color-static-faint: var(--d2l-color-galena);
|
|
47
47
|
--d2l-theme-text-color-static-inverted: #ffffff;
|
|
48
|
+
--d2l-theme-text-color-static-disabled: #20212280; /* --d2l-theme-text-color-static-standard at 50% opacity, remove once color-mix is widely supported */
|
|
48
49
|
--d2l-theme-text-color-static-standard: var(--d2l-color-ferrite);
|
|
49
50
|
--d2l-theme-text-color-static-subtle: var(--d2l-color-tungsten);
|
|
50
51
|
|
|
@@ -103,6 +104,7 @@ if (globalThis.document !== undefined && !globalThis.document.head.querySelector
|
|
|
103
104
|
--d2l-theme-text-color-interactive-hover: var(--d2l-theme-brand-color-primary-hover);
|
|
104
105
|
--d2l-theme-text-color-static-faint: var(--d2l-color-galena);
|
|
105
106
|
--d2l-theme-text-color-static-inverted: #161718;
|
|
107
|
+
--d2l-theme-text-color-static-disabled: #cdd5dc80; /* --d2l-theme-text-color-static-standard at 50% opacity, remove once color-mix is widely supported */
|
|
106
108
|
--d2l-theme-text-color-static-standard: var(--d2l-color-mica);
|
|
107
109
|
--d2l-theme-text-color-static-subtle: var(--d2l-color-chromite);
|
|
108
110
|
|
|
@@ -219,6 +221,10 @@ if (globalThis.document !== undefined && !globalThis.document.head.querySelector
|
|
|
219
221
|
${darkPalette}
|
|
220
222
|
}
|
|
221
223
|
}
|
|
224
|
+
|
|
225
|
+
@supports (color: color-mix(in srgb, black 50%, transparent)) {
|
|
226
|
+
--d2l-theme-text-color-static-disabled: color-mix(in srgb, var(--d2l-theme-text-color-static-standard) 50%, transparent);
|
|
227
|
+
}
|
|
222
228
|
`;
|
|
223
229
|
globalThis.document.head.appendChild(style);
|
|
224
230
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.228.0",
|
|
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",
|