@brightspace-ui/core 3.267.0 → 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 (112) 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-styles.js +140 -3
  88. package/components/inputs/input-text.js +245 -251
  89. package/components/inputs/input-textarea.js +128 -132
  90. package/components/inputs/input-time-range.js +100 -104
  91. package/components/inputs/input-time.js +107 -113
  92. package/components/link/link-mixin.js +37 -41
  93. package/components/link/link.js +113 -119
  94. package/components/list/list-controls.js +25 -29
  95. package/components/list/list-item-button-mixin.js +10 -12
  96. package/components/list/list-item-checkbox-mixin.js +35 -37
  97. package/components/list/list-item-content.js +33 -35
  98. package/components/list/list-item-drag-drop-mixin.js +45 -47
  99. package/components/list/list-item-drag-handle.js +80 -84
  100. package/components/list/list-item-drag-image.js +77 -81
  101. package/components/list/list-item-expand-collapse-mixin.js +17 -19
  102. package/components/list/list-item-generic-layout.js +222 -226
  103. package/components/list/list-item-link-mixin.js +10 -12
  104. package/components/list/list-item-mixin.js +68 -70
  105. package/components/list/list-item-nav-mixin.js +17 -19
  106. package/components/list/list-item-placement-marker.js +65 -67
  107. package/components/list/list-item-role-mixin.js +9 -11
  108. package/components/list/list-item.js +7 -9
  109. package/components/list/list.js +121 -125
  110. package/components/loading-spinner/loading-spinner.js +93 -97
  111. package/custom-elements.json +1920 -6694
  112. package/package.json +3 -2
@@ -35,264 +35,260 @@ function isRtl() {
35
35
  */
36
36
  class ListItemGenericLayout extends LitElement {
37
37
 
38
- static get properties() {
39
- return {
40
- /**
41
- * How to align content in the nested slot
42
- * @type {'content'|'control'}
43
- */
44
- alignNested: { type: String, reflect: true, attribute: 'align-nested' },
45
- /**
46
- * Whether to constrain actions so they do not fill the item. Required if slotted content is interactive.
47
- * @type {boolean}
48
- */
49
- noPrimaryAction: { type: Boolean, attribute: 'no-primary-action', reflect: true },
50
- /**
51
- * @ignore
52
- */
53
- // eslint-disable-next-line lit/no-native-attributes
54
- role: { type: String, reflect: true },
55
- /**
56
- * Specifies whether the grid is active or not
57
- * @type {boolean}
58
- */
59
- gridActive: { type: Boolean, attribute: 'grid-active' },
60
- /**
61
- * Inline start padding (in px) to apply to list item(s) in the nested slot. When used, nested list items will not use the grid start calcuations and will only use this number to determine indentation.
62
- * @type {number}
63
- */
64
- indentation: { type: Number, reflect: true },
65
- /**
66
- * @ignore
67
- */
68
- layout: { type: String, reflect: true },
69
- };
70
- }
71
-
72
- static get styles() {
73
- return css`
74
- :host {
75
- display: grid;
76
- grid-template-columns:
77
- [start outside-control-start] minmax(0, min-content)
78
- [color-start outside-control-end] minmax(0, min-content)
79
- [expand-collapse-start color-end] minmax(0, min-content)
80
- [control-start expand-collapse-end] minmax(0, min-content)
81
- [control-end content-start] minmax(0, auto)
82
- [content-end actions-start] minmax(0, min-content)
83
- [end actions-end];
84
- grid-template-rows:
85
- [start add-top-start] minmax(0, min-content)
86
- [add-top-end main-start] minmax(0, min-content)
87
- [main-end nested-start] minmax(0, min-content)
88
- [nested-end add-start] minmax(0, min-content)
89
- [add-end end];
90
- }
38
+ static properties = {
39
+ /**
40
+ * How to align content in the nested slot
41
+ * @type {'content'|'control'}
42
+ */
43
+ alignNested: { type: String, reflect: true, attribute: 'align-nested' },
44
+ /**
45
+ * Whether to constrain actions so they do not fill the item. Required if slotted content is interactive.
46
+ * @type {boolean}
47
+ */
48
+ noPrimaryAction: { type: Boolean, attribute: 'no-primary-action', reflect: true },
49
+ /**
50
+ * @ignore
51
+ */
52
+ // eslint-disable-next-line lit/no-native-attributes
53
+ role: { type: String, reflect: true },
54
+ /**
55
+ * Specifies whether the grid is active or not
56
+ * @type {boolean}
57
+ */
58
+ gridActive: { type: Boolean, attribute: 'grid-active' },
59
+ /**
60
+ * Inline start padding (in px) to apply to list item(s) in the nested slot. When used, nested list items will not use the grid start calcuations and will only use this number to determine indentation.
61
+ * @type {number}
62
+ */
63
+ indentation: { type: Number, reflect: true },
64
+ /**
65
+ * @ignore
66
+ */
67
+ layout: { type: String, reflect: true },
68
+ };
69
+
70
+ static styles = css`
71
+ :host {
72
+ display: grid;
73
+ grid-template-columns:
74
+ [start outside-control-start] minmax(0, min-content)
75
+ [color-start outside-control-end] minmax(0, min-content)
76
+ [expand-collapse-start color-end] minmax(0, min-content)
77
+ [control-start expand-collapse-end] minmax(0, min-content)
78
+ [control-end content-start] minmax(0, auto)
79
+ [content-end actions-start] minmax(0, min-content)
80
+ [end actions-end];
81
+ grid-template-rows:
82
+ [start add-top-start] minmax(0, min-content)
83
+ [add-top-end main-start] minmax(0, min-content)
84
+ [main-end nested-start] minmax(0, min-content)
85
+ [nested-end add-start] minmax(0, min-content)
86
+ [add-end end];
87
+ }
91
88
 
92
- :host([align-nested="control"]) ::slotted([slot="nested"]) {
93
- grid-column: control-start / end;
94
- }
89
+ :host([align-nested="control"]) ::slotted([slot="nested"]) {
90
+ grid-column: control-start / end;
91
+ }
95
92
 
96
- ::slotted([slot="drop-target"]) {
97
- grid-column: start / end;
98
- }
93
+ ::slotted([slot="drop-target"]) {
94
+ grid-column: start / end;
95
+ }
99
96
 
100
- ::slotted([slot="outside-control"]),
101
- ::slotted([slot="color-indicator"]),
102
- ::slotted([slot="expand-collapse"]),
103
- ::slotted([slot="control"]),
104
- ::slotted([slot="content"]),
105
- ::slotted([slot="actions"]),
106
- ::slotted([slot="outside-control-action"]),
107
- ::slotted([slot="before-content"]),
108
- ::slotted([slot="control-action"]),
109
- ::slotted([slot="content-action"]),
110
- ::slotted([slot="outside-control-container"]),
111
- ::slotted([slot="control-container"]),
112
- ::slotted([slot="drop-target"]) {
113
- grid-row: 2 / 3;
114
- }
97
+ ::slotted([slot="outside-control"]),
98
+ ::slotted([slot="color-indicator"]),
99
+ ::slotted([slot="expand-collapse"]),
100
+ ::slotted([slot="control"]),
101
+ ::slotted([slot="content"]),
102
+ ::slotted([slot="actions"]),
103
+ ::slotted([slot="outside-control-action"]),
104
+ ::slotted([slot="before-content"]),
105
+ ::slotted([slot="control-action"]),
106
+ ::slotted([slot="content-action"]),
107
+ ::slotted([slot="outside-control-container"]),
108
+ ::slotted([slot="control-container"]),
109
+ ::slotted([slot="drop-target"]) {
110
+ grid-row: 2 / 3;
111
+ }
115
112
 
116
- ::slotted([slot="outside-control"]) {
117
- grid-column: outside-control-start / outside-control-end;
118
- }
113
+ ::slotted([slot="outside-control"]) {
114
+ grid-column: outside-control-start / outside-control-end;
115
+ }
119
116
 
120
- ::slotted([slot="outside-control"]:not(.handle-only)) {
121
- pointer-events: none;
122
- }
117
+ ::slotted([slot="outside-control"]:not(.handle-only)) {
118
+ pointer-events: none;
119
+ }
123
120
 
124
- ::slotted([slot="expand-collapse"]) {
125
- cursor: pointer;
126
- grid-column: expand-collapse-start / expand-collapse-end;
127
- }
121
+ ::slotted([slot="expand-collapse"]) {
122
+ cursor: pointer;
123
+ grid-column: expand-collapse-start / expand-collapse-end;
124
+ }
128
125
 
129
- ::slotted([slot="control"]) {
130
- grid-column: control-start / control-end;
131
- pointer-events: none;
132
- width: 2.1rem;
133
- }
126
+ ::slotted([slot="control"]) {
127
+ grid-column: control-start / control-end;
128
+ pointer-events: none;
129
+ width: 2.1rem;
130
+ }
134
131
 
135
- ::slotted([slot="content"]) {
136
- grid-column: content-start / content-end;
137
- }
132
+ ::slotted([slot="content"]) {
133
+ grid-column: content-start / content-end;
134
+ }
138
135
 
139
- ::slotted([slot="color-indicator"]) {
140
- grid-column: color-start / color-end;
141
- }
136
+ ::slotted([slot="color-indicator"]) {
137
+ grid-column: color-start / color-end;
138
+ }
142
139
 
143
- ::slotted([slot="before-content"]) {
144
- grid-column: color-start / content-start;
145
- }
140
+ ::slotted([slot="before-content"]) {
141
+ grid-column: color-start / content-start;
142
+ }
146
143
 
147
- ::slotted([slot="control-action"]) ~ ::slotted([slot="content"]),
148
- ::slotted([slot="outside-control-action"]) ~ ::slotted([slot="content"]) {
149
- pointer-events: unset;
150
- }
144
+ ::slotted([slot="control-action"]) ~ ::slotted([slot="content"]),
145
+ ::slotted([slot="outside-control-action"]) ~ ::slotted([slot="content"]) {
146
+ pointer-events: unset;
147
+ }
151
148
 
152
- slot[name="actions"] {
153
- white-space: nowrap;
154
- }
149
+ slot[name="actions"] {
150
+ white-space: nowrap;
151
+ }
155
152
 
156
- ::slotted([slot="actions"]) {
157
- grid-column: actions-start / actions-end;
158
- justify-self: end;
159
- }
153
+ ::slotted([slot="actions"]) {
154
+ grid-column: actions-start / actions-end;
155
+ justify-self: end;
156
+ }
160
157
 
161
- ::slotted([slot="outside-control-action"]) {
162
- grid-column: start / end;
163
- }
164
- :host([no-primary-action]) ::slotted([slot="outside-control-action"]) {
165
- grid-column: start / outside-control-end;
166
- }
158
+ ::slotted([slot="outside-control-action"]) {
159
+ grid-column: start / end;
160
+ }
161
+ :host([no-primary-action]) ::slotted([slot="outside-control-action"]) {
162
+ grid-column: start / outside-control-end;
163
+ }
167
164
 
168
- ::slotted([slot="content-action"]) {
169
- grid-column: content-start / content-end;
170
- }
165
+ ::slotted([slot="content-action"]) {
166
+ grid-column: content-start / content-end;
167
+ }
171
168
 
172
- :host([no-primary-action]) ::slotted([slot="content-action"]) {
173
- display: none;
174
- }
169
+ :host([no-primary-action]) ::slotted([slot="content-action"]) {
170
+ display: none;
171
+ }
175
172
 
176
- ::slotted([slot="control-action"]) {
177
- grid-column-start: control-start;
178
- }
173
+ ::slotted([slot="control-action"]) {
174
+ grid-column-start: control-start;
175
+ }
179
176
 
180
- :host(:not([no-primary-action])) ::slotted([slot="outside-control-action"]) {
181
- grid-column-end: end;
182
- }
177
+ :host(:not([no-primary-action])) ::slotted([slot="outside-control-action"]) {
178
+ grid-column-end: end;
179
+ }
183
180
 
184
- :host(:not([no-primary-action])) ::slotted([slot="control-action"]) {
185
- grid-column-end: actions-start;
186
- }
181
+ :host(:not([no-primary-action])) ::slotted([slot="control-action"]) {
182
+ grid-column-end: actions-start;
183
+ }
187
184
 
188
- ::slotted([slot="outside-control-container"]) {
189
- grid-column: start / end;
190
- }
191
- ::slotted([slot="control-container"]) {
192
- grid-column: color-start / end;
193
- }
185
+ ::slotted([slot="outside-control-container"]) {
186
+ grid-column: start / end;
187
+ }
188
+ ::slotted([slot="control-container"]) {
189
+ grid-column: color-start / end;
190
+ }
194
191
 
195
- ::slotted([slot="nested"]) {
196
- grid-column: content-start / end;
197
- grid-row: nested;
198
- }
192
+ ::slotted([slot="nested"]) {
193
+ grid-column: content-start / end;
194
+ grid-row: nested;
195
+ }
199
196
 
200
- :host([indentation]) ::slotted([slot="nested"]) {
201
- grid-column-start: start;
202
- padding-inline-start: var(--d2l-list-item-generic-layout-nested-indentation);
203
- }
197
+ :host([indentation]) ::slotted([slot="nested"]) {
198
+ grid-column-start: start;
199
+ padding-inline-start: var(--d2l-list-item-generic-layout-nested-indentation);
200
+ }
204
201
 
205
- ::slotted([slot="add"]) {
206
- grid-row: add;
207
- }
208
- ::slotted([slot="add-top"]) {
209
- grid-row: add-top;
210
- }
211
- ::slotted([slot="add-top"]),
212
- ::slotted([slot="add"]) {
213
- grid-column: color-start / end;
214
- }
202
+ ::slotted([slot="add"]) {
203
+ grid-row: add;
204
+ }
205
+ ::slotted([slot="add-top"]) {
206
+ grid-row: add-top;
207
+ }
208
+ ::slotted([slot="add-top"]),
209
+ ::slotted([slot="add"]) {
210
+ grid-column: color-start / end;
211
+ }
215
212
 
216
- :host([layout="tile"]) {
217
- grid-template-columns:
218
- [start outside-control-start] minmax(0, 26px)
219
- [outside-control-end control-start] minmax(0, min-content)
220
- [control-end actions-start] minmax(0, auto)
221
- [actions-end end];
222
- grid-template-rows:
223
- [start header-start] minmax(0, min-content)
224
- [header-end content-start] auto
225
- [content-end end];
226
- height: 100%;
227
- }
213
+ :host([layout="tile"]) {
214
+ grid-template-columns:
215
+ [start outside-control-start] minmax(0, 26px)
216
+ [outside-control-end control-start] minmax(0, min-content)
217
+ [control-end actions-start] minmax(0, auto)
218
+ [actions-end end];
219
+ grid-template-rows:
220
+ [start header-start] minmax(0, min-content)
221
+ [header-end content-start] auto
222
+ [content-end end];
223
+ height: 100%;
224
+ }
228
225
 
229
- :host([layout="tile"]:not([is-draggable])) {
230
- grid-template-columns:
231
- [start outside-control-start] 0
232
- [outside-control-end control-start] minmax(0, min-content)
233
- [control-end actions-start] minmax(0, auto)
234
- [actions-end end];
235
- grid-template-rows:
236
- [start header-start] minmax(0, min-content)
237
- [header-end content-start] auto
238
- [content-end end];
239
- height: 100%;
240
- }
226
+ :host([layout="tile"]:not([is-draggable])) {
227
+ grid-template-columns:
228
+ [start outside-control-start] 0
229
+ [outside-control-end control-start] minmax(0, min-content)
230
+ [control-end actions-start] minmax(0, auto)
231
+ [actions-end end];
232
+ grid-template-rows:
233
+ [start header-start] minmax(0, min-content)
234
+ [header-end content-start] auto
235
+ [content-end end];
236
+ height: 100%;
237
+ }
241
238
 
242
- :host([layout="tile"]) ::slotted([slot="header"]) {
243
- grid-column: start / end;
244
- grid-row: header-start / header-end;
245
- }
239
+ :host([layout="tile"]) ::slotted([slot="header"]) {
240
+ grid-column: start / end;
241
+ grid-row: header-start / header-end;
242
+ }
246
243
 
247
- :host([layout="tile"]) ::slotted([slot="content"]),
248
- :host([layout="tile"]) ::slotted([slot="content-action"]),
249
- :host([layout="tile"]) ::slotted([slot="control-action"]) {
250
- grid-column: start / end;
251
- grid-row: content-start / end;
252
- }
253
- :host([layout="tile"]) ::slotted([slot="outside-control-container"]) {
254
- grid-column: start / end;
255
- grid-row: start / end;
256
- }
257
- :host([layout="tile"]) ::slotted([slot="control"]) {
258
- grid-column: control-start / control-end;
259
- grid-row: start / start;
260
- pointer-events: all;
261
- width: unset;
262
- }
244
+ :host([layout="tile"]) ::slotted([slot="content"]),
245
+ :host([layout="tile"]) ::slotted([slot="content-action"]),
246
+ :host([layout="tile"]) ::slotted([slot="control-action"]) {
247
+ grid-column: start / end;
248
+ grid-row: content-start / end;
249
+ }
250
+ :host([layout="tile"]) ::slotted([slot="outside-control-container"]) {
251
+ grid-column: start / end;
252
+ grid-row: start / end;
253
+ }
254
+ :host([layout="tile"]) ::slotted([slot="control"]) {
255
+ grid-column: control-start / control-end;
256
+ grid-row: start / start;
257
+ pointer-events: all;
258
+ width: unset;
259
+ }
263
260
 
264
- :host([layout="tile"]) ::slotted([slot="actions"]) {
265
- grid-column: actions-start / actions-end;
266
- grid-row: start / start;
267
- }
261
+ :host([layout="tile"]) ::slotted([slot="actions"]) {
262
+ grid-column: actions-start / actions-end;
263
+ grid-row: start / start;
264
+ }
268
265
 
269
- :host([layout="tile"]) ::slotted([slot="color-indicator"]) {
270
- grid-column: start;
271
- grid-row: content-start / content-end;
272
- }
266
+ :host([layout="tile"]) ::slotted([slot="color-indicator"]) {
267
+ grid-column: start;
268
+ grid-row: content-start / content-end;
269
+ }
273
270
 
274
- :host([layout="tile"]) ::slotted([slot="outside-control"]) {
275
- grid-column: outside-control-start / outside-control-end;
276
- grid-row: start / start;
277
- width: min-content;
278
- }
271
+ :host([layout="tile"]) ::slotted([slot="outside-control"]) {
272
+ grid-column: outside-control-start / outside-control-end;
273
+ grid-row: start / start;
274
+ width: min-content;
275
+ }
279
276
 
280
- :host([layout="tile"]) ::slotted([slot="outside-control-action"]) {
281
- grid-column: start / end;
282
- grid-row: start / start;
283
- }
277
+ :host([layout="tile"]) ::slotted([slot="outside-control-action"]) {
278
+ grid-column: start / end;
279
+ grid-row: start / start;
280
+ }
284
281
 
285
- :host(:not([layout="tile"])) slot[name="header"],
286
- :host([layout="tile"]) slot[name="add-top"],
287
- :host([layout="tile"]) slot[name="control-container"],
288
- :host([layout="tile"]) slot[name="before-content"],
289
- :host([layout="tile"]) slot[name="expand-collapse"],
290
- :host([layout="tile"]) slot[name="nested"],
291
- :host([layout="tile"]) slot[name="add"] {
292
- display: none;
293
- }
294
- `;
295
- }
282
+ :host(:not([layout="tile"])) slot[name="header"],
283
+ :host([layout="tile"]) slot[name="add-top"],
284
+ :host([layout="tile"]) slot[name="control-container"],
285
+ :host([layout="tile"]) slot[name="before-content"],
286
+ :host([layout="tile"]) slot[name="expand-collapse"],
287
+ :host([layout="tile"]) slot[name="nested"],
288
+ :host([layout="tile"]) slot[name="add"] {
289
+ display: none;
290
+ }
291
+ `;
296
292
 
297
293
  constructor() {
298
294
  super();
@@ -6,20 +6,18 @@ import { ifDefined } from 'lit/directives/if-defined.js';
6
6
 
7
7
  export const ListItemLinkMixin = superclass => class extends ListItemMixin(superclass) {
8
8
 
9
- static get properties() {
10
- return {
11
- /**
12
- * Address of item link if navigable
13
- * @type {string}
14
- */
15
- actionHref: { type: String, attribute: 'action-href', reflect: true },
16
- _ariaCurrent: { type: String }
17
- };
18
- }
9
+ static properties = {
10
+ /**
11
+ * Address of item link if navigable
12
+ * @type {string}
13
+ */
14
+ actionHref: { type: String, attribute: 'action-href', reflect: true },
15
+ _ariaCurrent: { type: String }
16
+ };
19
17
 
20
18
  static get styles() {
21
19
 
22
- const styles = [ css`
20
+ const styles = [css`
23
21
  :host([action-href]:not([action-href=""])) {
24
22
  --d2l-list-item-content-text-color: var(--d2l-color-celestine);
25
23
  }
@@ -39,7 +37,7 @@ export const ListItemLinkMixin = superclass => class extends ListItemMixin(super
39
37
  :host([action-href]:not([action-href=""])[layout="tile"]) [slot="outside-control-action"] {
40
38
  grid-column-end: end;
41
39
  }
42
- ` ];
40
+ `];
43
41
 
44
42
  super.styles && styles.unshift(super.styles);
45
43
  return styles;