implement list item styles

This commit is contained in:
Henry Jameson 2024-02-29 17:49:56 +02:00
commit 28c7fac9f0
10 changed files with 103 additions and 64 deletions

View file

@ -7,6 +7,7 @@
v-for="item in items"
:key="getKey(item)"
class="list-item"
:class="getClass(item)"
role="listitem"
>
<slot
@ -33,24 +34,11 @@ export default {
getKey: {
type: Function,
default: item => item.id
},
getClass: {
type: Function,
default: item => ''
}
}
}
</script>
<style lang="scss">
@import "../../variables";
.list {
&-item:not(:last-child) {
border-bottom: 1px solid;
border-bottom-color: $fallback--border;
border-bottom-color: var(--border, $fallback--border);
}
&-empty-content {
text-align: center;
padding: 10px;
}
}
</style>