@brightspace-ui/core 3.195.0 → 3.196.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.
|
@@ -426,6 +426,47 @@
|
|
|
426
426
|
</template>
|
|
427
427
|
</d2l-demo-snippet>
|
|
428
428
|
|
|
429
|
+
<h2>Tile Breaks</h2>
|
|
430
|
+
|
|
431
|
+
<d2l-demo-snippet>
|
|
432
|
+
<template>
|
|
433
|
+
<d2l-button-toggle pressed>
|
|
434
|
+
<d2l-button-subtle slot="not-pressed" icon="tier1:tile-view" text="Tiles"></d2l-button-subtle>
|
|
435
|
+
<d2l-button-subtle slot="pressed" icon="tier1:list-view" text="List"></d2l-button-subtle>
|
|
436
|
+
</d2l-button-toggle>
|
|
437
|
+
<d2l-list layout="tiles">
|
|
438
|
+
<d2l-list-item label="item 1" key="1">
|
|
439
|
+
<img slot="illustration" src="https://s.brightspace.com/course-images/images/38e839b1-37fa-470c-8830-b189ce4ae134/tile-high-density-max-size.jpg"></img>
|
|
440
|
+
<d2l-list-item-content>
|
|
441
|
+
<div>Identify categories of physical activities</div>
|
|
442
|
+
<div slot="secondary">Secondary Information</div>
|
|
443
|
+
<div slot="supporting-info">Specific Expectation A1.2</div>
|
|
444
|
+
</d2l-list-item-content>
|
|
445
|
+
</d2l-list-item>
|
|
446
|
+
<div class="d2l-list-tile-break"></div>
|
|
447
|
+
<d2l-list-item label="item 2" key="2">
|
|
448
|
+
<img slot="illustration" src="https://s.brightspace.com/course-images/images/e5fd575a-bc14-4a80-89e1-46f349a76178/tile-high-density-max-size.jpg"></img>
|
|
449
|
+
<d2l-list-item-content>
|
|
450
|
+
<div>Apply a decision-making process to assess risks and make safe decisions in a variety of situations</div>
|
|
451
|
+
<div slot="secondary">Secondary Information</div>
|
|
452
|
+
<div slot="supporting-info">Specific Expectation B2.1</div>
|
|
453
|
+
</d2l-list-item-content>
|
|
454
|
+
</d2l-list-item>
|
|
455
|
+
<d2l-list-item label="item 3" key="3">
|
|
456
|
+
<img slot="illustration" src="https://s.brightspace.com/course-images/images/63b162ab-b582-4bf9-8c1d-1dad04714121/tile-high-density-max-size.jpg"></img>
|
|
457
|
+
<d2l-list-item-content>
|
|
458
|
+
<div>Retain objects of various shapes and sizes in different ways, while moving around others and equipment</div>
|
|
459
|
+
<div slot="secondary">Secondary Information</div>
|
|
460
|
+
<div slot="supporting-info">Specific Expectation B2.2</div>
|
|
461
|
+
</d2l-list-item-content>
|
|
462
|
+
</d2l-list-item>
|
|
463
|
+
</d2l-list>
|
|
464
|
+
<script data-demo-hide>
|
|
465
|
+
(demo => window.wireupListTileToggle(demo))(document.currentScript.parentNode);
|
|
466
|
+
</script>
|
|
467
|
+
</template>
|
|
468
|
+
</d2l-demo-snippet>
|
|
469
|
+
|
|
429
470
|
</d2l-demo-page>
|
|
430
471
|
</body>
|
|
431
472
|
</html>
|
package/components/list/list.js
CHANGED
|
@@ -146,6 +146,15 @@ class List extends PageableMixin(SelectionMixin(LitElement)) {
|
|
|
146
146
|
:host([add-button]) ::slotted([slot="controls"]) {
|
|
147
147
|
margin-bottom: calc(6px + 0.4rem); /* controls section margin-bottom + spacing for add-button */
|
|
148
148
|
}
|
|
149
|
+
|
|
150
|
+
::slotted(.d2l-list-tile-break) {
|
|
151
|
+
display: none;
|
|
152
|
+
}
|
|
153
|
+
:host([layout="tiles"]) ::slotted(.d2l-list-tile-break) {
|
|
154
|
+
display: block;
|
|
155
|
+
flex-basis: 100%;
|
|
156
|
+
height: 0;
|
|
157
|
+
}
|
|
149
158
|
`;
|
|
150
159
|
}
|
|
151
160
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.196.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",
|