test material

This commit is contained in:
Niels Lyngsø
2024-01-12 13:46:24 +01:00
parent 62e428143b
commit 49eff2bd2d
3 changed files with 6 additions and 3 deletions

View File

@@ -74,7 +74,7 @@ export class ExampleSorterGroup extends UmbElementMixin(LitElement) {
<div class="sorter-container">
${repeat(
this._items,
(item) => item.name,
(item) => item,
(item) =>
html`<example-sorter-item name=${item.name}>
<button @click=${() => this.removeItem(item)}>Delete</button>

View File

@@ -14,6 +14,7 @@ export class ExampleSorterItem extends UmbElementMixin(LitElement) {
render() {
return html`
${this.name}
<img src="https://picsum.photos/seed/${this.name}/5000/5000" style="width:250px;" />
<slot></slot>
`;
}
@@ -30,7 +31,7 @@ export class ExampleSorterItem extends UmbElementMixin(LitElement) {
border-radius: var(--uui-border-radius);
margin-bottom: 3px;
}
:host[drag-placeholder] {
:host([drag-placeholder]) {
opacity: 0.2;
}
`,