@brightspace-ui/core 3.267.1 → 3.267.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.
Files changed (111) hide show
  1. package/components/alert/alert-toast.js +98 -102
  2. package/components/alert/alert.js +109 -113
  3. package/components/backdrop/backdrop-dirty-overlay.js +13 -17
  4. package/components/backdrop/backdrop-loading.js +105 -109
  5. package/components/backdrop/backdrop.js +50 -54
  6. package/components/breadcrumbs/breadcrumb-current-page.js +19 -23
  7. package/components/breadcrumbs/breadcrumb.js +50 -54
  8. package/components/breadcrumbs/breadcrumbs.js +34 -38
  9. package/components/button/button-add.js +156 -164
  10. package/components/button/button-copy-mixin.js +9 -11
  11. package/components/button/button-copy.js +15 -19
  12. package/components/button/button-icon.js +110 -114
  13. package/components/button/button-move.js +153 -157
  14. package/components/button/button-split-item.js +16 -20
  15. package/components/button/button-split.js +70 -74
  16. package/components/button/button-subtle-copy.js +17 -19
  17. package/components/button/button-subtle.js +145 -149
  18. package/components/button/button-toggle.js +25 -29
  19. package/components/button/button.js +70 -74
  20. package/components/button/floating-buttons.js +63 -67
  21. package/components/calendar/calendar.js +244 -248
  22. package/components/card/card-content-meta.js +13 -15
  23. package/components/card/card-content-title.js +9 -11
  24. package/components/card/card-footer-link.js +76 -80
  25. package/components/card/card-loading-shimmer.js +35 -39
  26. package/components/card/card.js +188 -192
  27. package/components/collapsible-panel/collapsible-panel-group.js +17 -21
  28. package/components/collapsible-panel/collapsible-panel-summary-item.js +27 -31
  29. package/components/collapsible-panel/collapsible-panel.js +258 -262
  30. package/components/count-badge/count-badge-icon.js +12 -16
  31. package/components/count-badge/count-badge-mixin.js +124 -128
  32. package/components/count-badge/count-badge.js +2 -4
  33. package/components/description-list/description-list-wrapper.js +27 -31
  34. package/components/dialog/dialog-confirm.js +55 -59
  35. package/components/dialog/dialog-fullscreen.js +128 -132
  36. package/components/dialog/dialog-mixin.js +39 -41
  37. package/components/dialog/dialog.js +61 -65
  38. package/components/dropdown/dropdown-button-subtle.js +21 -25
  39. package/components/dropdown/dropdown-button.js +31 -35
  40. package/components/dropdown/dropdown-context-menu.js +28 -31
  41. package/components/dropdown/dropdown-menu.js +27 -31
  42. package/components/dropdown/dropdown-more.js +23 -26
  43. package/components/dropdown/dropdown-opener-mixin.js +44 -46
  44. package/components/dropdown/dropdown-popover-mixin.js +155 -159
  45. package/components/dropdown/dropdown-tabs.js +5 -7
  46. package/components/dropdown/dropdown.js +1 -3
  47. package/components/empty-state/empty-state-action-button.js +18 -22
  48. package/components/empty-state/empty-state-action-link.js +14 -18
  49. package/components/empty-state/empty-state-illustrated.js +21 -25
  50. package/components/empty-state/empty-state-simple.js +8 -12
  51. package/components/expand-collapse/expand-collapse-content.js +48 -52
  52. package/components/filter/filter-dimension-set-date-text-value.js +34 -36
  53. package/components/filter/filter-dimension-set-date-time-range-value.js +45 -47
  54. package/components/filter/filter-dimension-set-empty-state.js +17 -19
  55. package/components/filter/filter-dimension-set-value.js +27 -29
  56. package/components/filter/filter-dimension-set.js +65 -67
  57. package/components/filter/filter-overflow-group.js +15 -19
  58. package/components/filter/filter-tags.js +16 -19
  59. package/components/filter/filter.js +115 -119
  60. package/components/focus-trap/focus-trap.js +17 -21
  61. package/components/form/form-element-mixin.js +33 -35
  62. package/components/form/form-error-summary.js +37 -42
  63. package/components/form/form.js +33 -37
  64. package/components/hierarchical-view/hierarchical-view-mixin.js +76 -80
  65. package/components/hierarchical-view/hierarchical-view.js +5 -7
  66. package/components/html-block/html-block.js +45 -49
  67. package/components/icons/icon-custom.js +20 -24
  68. package/components/icons/icon.js +20 -24
  69. package/components/icons/slotted-icon-mixin.js +16 -18
  70. package/components/inputs/input-checkbox-group.js +34 -38
  71. package/components/inputs/input-checkbox.js +106 -110
  72. package/components/inputs/input-color.js +142 -148
  73. package/components/inputs/input-date-range.js +90 -94
  74. package/components/inputs/input-date-time-range-to.js +70 -74
  75. package/components/inputs/input-date-time-range.js +110 -115
  76. package/components/inputs/input-date-time.js +75 -79
  77. package/components/inputs/input-date.js +101 -105
  78. package/components/inputs/input-fieldset.js +37 -43
  79. package/components/inputs/input-group.js +10 -12
  80. package/components/inputs/input-inline-help.js +4 -6
  81. package/components/inputs/input-number.js +112 -118
  82. package/components/inputs/input-percent.js +52 -58
  83. package/components/inputs/input-radio-group.js +45 -49
  84. package/components/inputs/input-radio-spacer.js +11 -13
  85. package/components/inputs/input-radio.js +62 -66
  86. package/components/inputs/input-search.js +63 -68
  87. package/components/inputs/input-text.js +245 -251
  88. package/components/inputs/input-textarea.js +128 -132
  89. package/components/inputs/input-time-range.js +100 -104
  90. package/components/inputs/input-time.js +107 -113
  91. package/components/link/link-mixin.js +37 -41
  92. package/components/link/link.js +113 -119
  93. package/components/list/list-controls.js +25 -29
  94. package/components/list/list-item-button-mixin.js +10 -12
  95. package/components/list/list-item-checkbox-mixin.js +35 -37
  96. package/components/list/list-item-content.js +33 -35
  97. package/components/list/list-item-drag-drop-mixin.js +45 -47
  98. package/components/list/list-item-drag-handle.js +80 -84
  99. package/components/list/list-item-drag-image.js +77 -81
  100. package/components/list/list-item-expand-collapse-mixin.js +17 -19
  101. package/components/list/list-item-generic-layout.js +222 -226
  102. package/components/list/list-item-link-mixin.js +10 -12
  103. package/components/list/list-item-mixin.js +68 -70
  104. package/components/list/list-item-nav-mixin.js +17 -19
  105. package/components/list/list-item-placement-marker.js +65 -67
  106. package/components/list/list-item-role-mixin.js +9 -11
  107. package/components/list/list-item.js +7 -9
  108. package/components/list/list.js +121 -125
  109. package/components/loading-spinner/loading-spinner.js +93 -97
  110. package/custom-elements.json +1920 -6694
  111. package/package.json +3 -2
@@ -149,304 +149,300 @@ export function getPrevMonth(month) {
149
149
  */
150
150
  class Calendar extends LocalizeCoreElement(LitElement) {
151
151
 
152
- static get properties() {
153
- return {
154
- /**
155
- * Additional info for each day (ex. events on [{"date": "2024-09-19"}])
156
- * @type {Array}
157
- */
158
- dayInfos: { type: Array, attribute: 'day-infos' },
159
- /**
160
- * Unique label text for calendar (necessary if multiple calendars on page)
161
- * @type {string}
162
- */
163
- label: { attribute: 'label', reflect: true, type: String },
164
- /**
165
- * ADVANCED: Initial date to override the logic for determining default date to initially show
166
- * @type {string}
167
- */
168
- initialValue: { attribute: 'initial-value', type: String },
169
- /**
170
- * Maximum valid date that could be selected by a user
171
- * @type {string}
172
- */
173
- maxValue: { attribute: 'max-value', reflect: true, type: String },
174
- /**
175
- * Minimum valid date that could be selected by a user
176
- * @type {string}
177
- */
178
- minValue: { attribute: 'min-value', reflect: true, type: String },
179
- /**
180
- * Currently selected date
181
- * @type {string}
182
- */
183
- selectedValue: { type: String, attribute: 'selected-value' },
184
- /**
185
- * ACCESSIBILITY: Summary of the calendar used by screen reader users for identifying the calendar and/or summarizing its purpose
186
- * @type {string}
187
- */
188
- summary: { type: String },
189
- _dialog: { type: Boolean },
190
- _focusDate: { type: Object },
191
- _isInitialFocusDate: { type: Boolean },
192
- _monthNav: { type: String },
193
- _shownMonth: { type: Number },
194
- _shownYear: { type: Number }
195
- };
196
- }
152
+ static properties = {
153
+ /**
154
+ * Additional info for each day (ex. events on [{"date": "2024-09-19"}])
155
+ * @type {Array}
156
+ */
157
+ dayInfos: { type: Array, attribute: 'day-infos' },
158
+ /**
159
+ * Unique label text for calendar (necessary if multiple calendars on page)
160
+ * @type {string}
161
+ */
162
+ label: { attribute: 'label', reflect: true, type: String },
163
+ /**
164
+ * ADVANCED: Initial date to override the logic for determining default date to initially show
165
+ * @type {string}
166
+ */
167
+ initialValue: { attribute: 'initial-value', type: String },
168
+ /**
169
+ * Maximum valid date that could be selected by a user
170
+ * @type {string}
171
+ */
172
+ maxValue: { attribute: 'max-value', reflect: true, type: String },
173
+ /**
174
+ * Minimum valid date that could be selected by a user
175
+ * @type {string}
176
+ */
177
+ minValue: { attribute: 'min-value', reflect: true, type: String },
178
+ /**
179
+ * Currently selected date
180
+ * @type {string}
181
+ */
182
+ selectedValue: { type: String, attribute: 'selected-value' },
183
+ /**
184
+ * ACCESSIBILITY: Summary of the calendar used by screen reader users for identifying the calendar and/or summarizing its purpose
185
+ * @type {string}
186
+ */
187
+ summary: { type: String },
188
+ _dialog: { type: Boolean },
189
+ _focusDate: { type: Object },
190
+ _isInitialFocusDate: { type: Boolean },
191
+ _monthNav: { type: String },
192
+ _shownMonth: { type: Number },
193
+ _shownYear: { type: Number }
194
+ };
197
195
 
198
- static get styles() {
199
- return [bodySmallStyles, heading4Styles, offscreenStyles, css`
200
- :host {
201
- display: block;
202
- min-width: 14rem;
203
- }
196
+ static styles = [bodySmallStyles, heading4Styles, offscreenStyles, css`
197
+ :host {
198
+ display: block;
199
+ min-width: 14rem;
200
+ }
204
201
 
205
- table {
206
- border-collapse: collapse;
207
- border-spacing: 0;
208
- table-layout: fixed;
209
- width: 100%;
210
- }
202
+ table {
203
+ border-collapse: collapse;
204
+ border-spacing: 0;
205
+ table-layout: fixed;
206
+ width: 100%;
207
+ }
211
208
 
212
- th {
213
- border-bottom: 1px solid var(--d2l-theme-border-color-subtle);
214
- padding-bottom: 0.6rem;
215
- padding-top: 0.3rem;
216
- text-align: center;
217
- }
209
+ th {
210
+ border-bottom: 1px solid var(--d2l-theme-border-color-subtle);
211
+ padding-bottom: 0.6rem;
212
+ padding-top: 0.3rem;
213
+ text-align: center;
214
+ }
218
215
 
219
- abbr {
220
- text-decoration: none;
221
- }
216
+ abbr {
217
+ text-decoration: none;
218
+ }
222
219
 
223
- tbody > tr:first-child button {
224
- margin-top: 0.3rem;
225
- }
220
+ tbody > tr:first-child button {
221
+ margin-top: 0.3rem;
222
+ }
226
223
 
227
- .d2l-calendar {
228
- border-radius: 4px;
229
- }
224
+ .d2l-calendar {
225
+ border-radius: 4px;
226
+ }
230
227
 
231
- .d2l-calendar-title {
232
- align-items: center;
233
- display: flex;
234
- justify-content: space-between;
235
- }
228
+ .d2l-calendar-title {
229
+ align-items: center;
230
+ display: flex;
231
+ justify-content: space-between;
232
+ }
236
233
 
237
- .d2l-calendar-title .d2l-heading-4 {
238
- height: 100%;
239
- margin: 0;
240
- opacity: 0;
241
- }
234
+ .d2l-calendar-title .d2l-heading-4 {
235
+ height: 100%;
236
+ margin: 0;
237
+ opacity: 0;
238
+ }
242
239
 
243
- .d2l-calendar-next .d2l-calendar-title .d2l-heading-4 {
244
- padding-left: 20px;
245
- padding-right: 0;
246
- }
240
+ .d2l-calendar-next .d2l-calendar-title .d2l-heading-4 {
241
+ padding-left: 20px;
242
+ padding-right: 0;
243
+ }
247
244
 
248
- .d2l-calendar-prev .d2l-calendar-title .d2l-heading-4 {
249
- padding-left: 0;
250
- padding-right: 20px;
251
- }
245
+ .d2l-calendar-prev .d2l-calendar-title .d2l-heading-4 {
246
+ padding-left: 0;
247
+ padding-right: 20px;
248
+ }
252
249
 
253
- .d2l-calendar-next-updown .d2l-calendar-title .d2l-heading-4 {
254
- padding-bottom: 0;
255
- padding-top: 20px;
256
- }
250
+ .d2l-calendar-next-updown .d2l-calendar-title .d2l-heading-4 {
251
+ padding-bottom: 0;
252
+ padding-top: 20px;
253
+ }
257
254
 
258
- .d2l-calendar-prev-updown .d2l-calendar-title .d2l-heading-4 {
259
- padding-bottom: 20px;
260
- padding-top: 0;
261
- }
255
+ .d2l-calendar-prev-updown .d2l-calendar-title .d2l-heading-4 {
256
+ padding-bottom: 20px;
257
+ padding-top: 0;
258
+ }
262
259
 
263
- .d2l-calendar-date {
264
- align-items: center;
265
- background-color: var(--d2l-theme-background-color-base);
266
- border-radius: 0.3rem;
267
- border-style: none;
268
- box-sizing: content-box;
269
- color: var(--d2l-theme-text-color-static-standard);
270
- cursor: pointer;
271
- display: flex;
272
- font-family: inherit;
273
- font-size: 0.8rem;
274
- height: calc(2rem - 6px);
275
- justify-content: center;
276
- letter-spacing: inherit;
277
- line-height: inherit;
278
- margin-left: auto;
279
- margin-right: auto;
280
- opacity: 0;
281
- outline-offset: -1px;
282
- padding: 3px;
283
- position: relative;
284
- text-align: center;
285
- -webkit-user-select: none;
286
- -moz-user-select: none;
287
- -ms-user-select: none;
288
- user-select: none;
289
- width: calc(2rem - 6px);
290
- }
260
+ .d2l-calendar-date {
261
+ align-items: center;
262
+ background-color: var(--d2l-theme-background-color-base);
263
+ border-radius: 0.3rem;
264
+ border-style: none;
265
+ box-sizing: content-box;
266
+ color: var(--d2l-theme-text-color-static-standard);
267
+ cursor: pointer;
268
+ display: flex;
269
+ font-family: inherit;
270
+ font-size: 0.8rem;
271
+ height: calc(2rem - 6px);
272
+ justify-content: center;
273
+ letter-spacing: inherit;
274
+ line-height: inherit;
275
+ margin-left: auto;
276
+ margin-right: auto;
277
+ opacity: 0;
278
+ outline-offset: -1px;
279
+ padding: 3px;
280
+ position: relative;
281
+ text-align: center;
282
+ -webkit-user-select: none;
283
+ -moz-user-select: none;
284
+ -ms-user-select: none;
285
+ user-select: none;
286
+ width: calc(2rem - 6px);
287
+ }
288
+
289
+ .d2l-calendar-date::-moz-focus-inner {
290
+ border: 0;
291
+ }
291
292
 
292
- .d2l-calendar-date::-moz-focus-inner {
293
- border: 0;
293
+ .d2l-calendar-date:disabled {
294
+ cursor: not-allowed;
295
+ }
296
+
297
+ @media (prefers-reduced-motion: reduce) {
298
+ .d2l-calendar-title .d2l-heading-4,
299
+ .d2l-calendar-date {
300
+ opacity: 1;
294
301
  }
295
302
 
296
303
  .d2l-calendar-date:disabled {
297
- cursor: not-allowed;
304
+ opacity: var(--d2l-theme-opacity-disabled-control);
298
305
  }
306
+ }
299
307
 
300
- @media (prefers-reduced-motion: reduce) {
301
- .d2l-calendar-title .d2l-heading-4,
302
- .d2l-calendar-date {
303
- opacity: 1;
304
- }
305
-
306
- .d2l-calendar-date:disabled {
307
- opacity: var(--d2l-theme-opacity-disabled-control);
308
- }
309
- }
308
+ .d2l-calendar-next .d2l-calendar-date {
309
+ left: 10px;
310
+ }
310
311
 
311
- .d2l-calendar-next .d2l-calendar-date {
312
- left: 10px;
313
- }
312
+ .d2l-calendar-next-updown .d2l-calendar-date {
313
+ top: 10px;
314
+ }
314
315
 
315
- .d2l-calendar-next-updown .d2l-calendar-date {
316
- top: 10px;
317
- }
316
+ .d2l-calendar-prev .d2l-calendar-date {
317
+ left: -10px;
318
+ }
318
319
 
319
- .d2l-calendar-prev .d2l-calendar-date {
320
- left: -10px;
321
- }
320
+ .d2l-calendar-prev-updown .d2l-calendar-date {
321
+ top: -10px;
322
+ }
322
323
 
323
- .d2l-calendar-prev-updown .d2l-calendar-date {
324
- top: -10px;
325
- }
324
+ .d2l-calendar-animating .d2l-calendar-title .d2l-heading-4,
325
+ .d2l-calendar-animating .d2l-calendar-date {
326
+ opacity: 1;
327
+ transition-duration: 200ms;
328
+ transition-property: opacity, transform;
329
+ transition-timing-function: ease-out;
330
+ }
326
331
 
327
- .d2l-calendar-animating .d2l-calendar-title .d2l-heading-4,
328
- .d2l-calendar-animating .d2l-calendar-date {
329
- opacity: 1;
330
- transition-duration: 200ms;
331
- transition-property: opacity, transform;
332
- transition-timing-function: ease-out;
333
- }
332
+ .d2l-calendar-animating .d2l-calendar-date:disabled {
333
+ opacity: var(--d2l-theme-opacity-disabled-control);
334
+ }
334
335
 
335
- .d2l-calendar-animating .d2l-calendar-date:disabled {
336
- opacity: var(--d2l-theme-opacity-disabled-control);
337
- }
336
+ .d2l-calendar-next .d2l-heading-4,
337
+ .d2l-calendar-next .d2l-calendar-date {
338
+ transform: translateX(-10px);
339
+ }
338
340
 
339
- .d2l-calendar-next .d2l-heading-4,
340
- .d2l-calendar-next .d2l-calendar-date {
341
- transform: translateX(-10px);
342
- }
341
+ .d2l-calendar-next-updown .d2l-heading-4,
342
+ .d2l-calendar-next-updown .d2l-calendar-date {
343
+ transform: translateY(-10px);
344
+ }
343
345
 
344
- .d2l-calendar-next-updown .d2l-heading-4,
345
- .d2l-calendar-next-updown .d2l-calendar-date {
346
- transform: translateY(-10px);
347
- }
346
+ .d2l-calendar-prev .d2l-heading-4,
347
+ .d2l-calendar-prev .d2l-calendar-date {
348
+ transform: translateX(10px);
349
+ }
348
350
 
349
- .d2l-calendar-prev .d2l-heading-4,
350
- .d2l-calendar-prev .d2l-calendar-date {
351
- transform: translateX(10px);
352
- }
351
+ .d2l-calendar-prev-updown .d2l-heading-4,
352
+ .d2l-calendar-prev-updown .d2l-calendar-date {
353
+ transform: translateY(10px);
354
+ }
353
355
 
354
- .d2l-calendar-prev-updown .d2l-heading-4,
355
- .d2l-calendar-prev-updown .d2l-calendar-date {
356
- transform: translateY(10px);
357
- }
356
+ .d2l-calendar-date:enabled:not(.d2l-calendar-date-selected):hover,
357
+ .d2l-calendar-date:enabled:not(.d2l-calendar-date-selected).d2l-calendar-date-hover {
358
+ background-color: var(--d2l-theme-background-color-interactive-tertiary-hover);
359
+ }
358
360
 
359
- .d2l-calendar-date:enabled:not(.d2l-calendar-date-selected):hover,
360
- .d2l-calendar-date:enabled:not(.d2l-calendar-date-selected).d2l-calendar-date-hover {
361
- background-color: var(--d2l-theme-background-color-interactive-tertiary-hover);
362
- }
361
+ td, .d2l-calendar-date:${unsafeCSS(getFocusPseudoClass())} {
362
+ outline: none;
363
+ }
363
364
 
364
- td, .d2l-calendar-date:${unsafeCSS(getFocusPseudoClass())} {
365
- outline: none;
366
- }
365
+ td:${unsafeCSS(getFocusPseudoClass())} .d2l-calendar-date:not(:disabled) {
366
+ outline: 2px solid var(--d2l-theme-border-color-focus);
367
+ }
367
368
 
368
- td:${unsafeCSS(getFocusPseudoClass())} .d2l-calendar-date:not(:disabled) {
369
- outline: 2px solid var(--d2l-theme-border-color-focus);
369
+ @keyframes initial-focus {
370
+ from {
371
+ outline: 0 solid var(--d2l-theme-border-color-focus);
372
+ padding: 0;
370
373
  }
374
+ }
371
375
 
372
- @keyframes initial-focus {
373
- from {
374
- outline: 0 solid var(--d2l-theme-border-color-focus);
375
- padding: 0;
376
- }
377
- }
376
+ td:${unsafeCSS(getFocusPseudoClass())} .d2l-calendar-date.d2l-calendar-date-initial {
377
+ animation: 200ms ease-in initial-focus;
378
+ }
378
379
 
379
- td:${unsafeCSS(getFocusPseudoClass())} .d2l-calendar-date.d2l-calendar-date-initial {
380
- animation: 200ms ease-in initial-focus;
380
+ @media (prefers-reduced-motion: reduce) {
381
+ td:${unsafeCSS(getFocusPseudoClass())} .d2l-calendar-date.d2l-calendar-date-initial,
382
+ td:${unsafeCSS(getFocusPseudoClass())} .d2l-calendar-date-initial.d2l-calendar-date-day-info::after {
383
+ animation: none;
381
384
  }
385
+ }
382
386
 
383
- @media (prefers-reduced-motion: reduce) {
384
- td:${unsafeCSS(getFocusPseudoClass())} .d2l-calendar-date.d2l-calendar-date-initial,
385
- td:${unsafeCSS(getFocusPseudoClass())} .d2l-calendar-date-initial.d2l-calendar-date-day-info::after {
386
- animation: none;
387
- }
388
- }
387
+ .d2l-calendar-date.d2l-calendar-date-selected {
388
+ background-color: var(--d2l-theme-background-color-interactive-highlighted);
389
+ outline: 1px solid var(--d2l-theme-border-color-focus);
390
+ }
389
391
 
390
- .d2l-calendar-date.d2l-calendar-date-selected {
391
- background-color: var(--d2l-theme-background-color-interactive-highlighted);
392
- outline: 1px solid var(--d2l-theme-border-color-focus);
393
- }
392
+ .d2l-calendar-date.d2l-calendar-date-selected:disabled {
393
+ background-color: var(--d2l-theme-background-color-base);
394
+ color: var(--d2l-theme-text-color-static-disabled);
395
+ opacity: 1;
396
+ outline: none;
397
+ }
394
398
 
395
- .d2l-calendar-date.d2l-calendar-date-selected:disabled {
396
- background-color: var(--d2l-theme-background-color-base);
397
- color: var(--d2l-theme-text-color-static-disabled);
398
- opacity: 1;
399
- outline: none;
400
- }
399
+ td:${unsafeCSS(getFocusPseudoClass())} .d2l-calendar-date.d2l-calendar-date-selected:disabled {
400
+ outline: 2px solid var(--d2l-theme-border-color-focus);
401
+ }
401
402
 
402
- td:${unsafeCSS(getFocusPseudoClass())} .d2l-calendar-date.d2l-calendar-date-selected:disabled {
403
- outline: 2px solid var(--d2l-theme-border-color-focus);
404
- }
403
+ .d2l-calendar-date.d2l-calendar-date-today,
404
+ .d2l-calendar-date.d2l-calendar-date-selected:enabled {
405
+ font-size: 1rem;
406
+ font-weight: 700;
407
+ }
405
408
 
406
- .d2l-calendar-date.d2l-calendar-date-today,
407
- .d2l-calendar-date.d2l-calendar-date-selected:enabled {
408
- font-size: 1rem;
409
- font-weight: 700;
409
+ @keyframes initial-focus-day-info {
410
+ from {
411
+ bottom: 1px;
410
412
  }
413
+ }
411
414
 
412
- @keyframes initial-focus-day-info {
413
- from {
414
- bottom: 1px;
415
- }
416
- }
415
+ td:${unsafeCSS(getFocusPseudoClass())} .d2l-calendar-date-initial.d2l-calendar-date-day-info::after {
416
+ animation: 200ms ease-in initial-focus-day-info;
417
+ }
417
418
 
418
- td:${unsafeCSS(getFocusPseudoClass())} .d2l-calendar-date-initial.d2l-calendar-date-day-info::after {
419
- animation: 200ms ease-in initial-focus-day-info;
420
- }
419
+ .d2l-calendar-date-day-info::after {
420
+ background-color: var(--d2l-theme-brand-color-primary-default);
421
+ border-radius: 3px;
422
+ bottom: 4px;
423
+ content: "";
424
+ display: inline-block;
425
+ height: 6px;
426
+ position: absolute;
427
+ width: 6px;
428
+ }
421
429
 
430
+ .d2l-calendar-date-selected.d2l-calendar-date-day-info::after,
431
+ td:${unsafeCSS(getFocusPseudoClass())} .d2l-calendar-date-day-info::after {
432
+ bottom: 3px;
433
+ }
434
+ @media (prefers-contrast: more) {
422
435
  .d2l-calendar-date-day-info::after {
423
- background-color: var(--d2l-theme-brand-color-primary-default);
424
- border-radius: 3px;
425
- bottom: 4px;
426
- content: "";
427
- display: inline-block;
428
- height: 6px;
429
- position: absolute;
430
- width: 6px;
436
+ background-color: FieldText;
437
+ forced-color-adjust: none;
431
438
  }
432
439
 
433
- .d2l-calendar-date-selected.d2l-calendar-date-day-info::after,
434
- td:${unsafeCSS(getFocusPseudoClass())} .d2l-calendar-date-day-info::after {
435
- bottom: 3px;
436
- }
437
- @media (prefers-contrast: more) {
438
- .d2l-calendar-date-day-info::after {
439
- background-color: FieldText;
440
- forced-color-adjust: none;
441
- }
442
-
443
- td:${unsafeCSS(getFocusPseudoClass())} .d2l-calendar-date {
444
- outline-color: Highlight !important;
445
- }
440
+ td:${unsafeCSS(getFocusPseudoClass())} .d2l-calendar-date {
441
+ outline-color: Highlight !important;
446
442
  }
443
+ }
447
444
 
448
- `];
449
- }
445
+ `];
450
446
 
451
447
  constructor() {
452
448
  super();
@@ -7,21 +7,19 @@ import { css, html, LitElement } from 'lit';
7
7
  */
8
8
  class CardContentMeta extends LitElement {
9
9
 
10
- static get styles() {
11
- return css`
12
- :host {
13
- box-sizing: border-box;
14
- color: var(--d2l-color-tungsten);
15
- display: inline-block;
16
- font-size: 0.7rem;
17
- font-weight: 400;
18
- line-height: 1rem;
19
- }
20
- :host span {
21
- display: inline-block; /* extra inline-block helps reset display context to opt-out of underline */
22
- }
23
- `;
24
- }
10
+ static styles = css`
11
+ :host {
12
+ box-sizing: border-box;
13
+ color: var(--d2l-color-tungsten);
14
+ display: inline-block;
15
+ font-size: 0.7rem;
16
+ font-weight: 400;
17
+ line-height: 1rem;
18
+ }
19
+ :host span {
20
+ display: inline-block; /* extra inline-block helps reset display context to opt-out of underline */
21
+ }
22
+ `;
25
23
 
26
24
  render() {
27
25
  return html`<span><slot></slot></span>`;
@@ -6,17 +6,15 @@ import { css, html, LitElement } from 'lit';
6
6
  */
7
7
  class CardContentTitle extends LitElement {
8
8
 
9
- static get styles() {
10
- return css`
11
- :host {
12
- box-sizing: border-box;
13
- display: block;
14
- font-size: 0.95rem;
15
- font-weight: 400;
16
- line-height: 1.4rem;
17
- }
18
- `;
19
- }
9
+ static styles = css`
10
+ :host {
11
+ box-sizing: border-box;
12
+ display: block;
13
+ font-size: 0.95rem;
14
+ font-weight: 400;
15
+ line-height: 1.4rem;
16
+ }
17
+ `;
20
18
 
21
19
  render() {
22
20
  return html`<slot></slot>`;