Skip to content

Commit

Permalink
Improve selected state for items
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianallgeier committed Dec 13, 2024
1 parent d082a62 commit 660f2e7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions panel/src/components/Collection/Item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,13 @@ export default {
--item-color-back: light-dark(var(--color-white), var(--color-gray-850));
--item-height: auto;
--item-height-cardlet: calc(var(--height-md) * 3);
--item-shadow: var(--shadow-sm);
}
.k-item {
position: relative;
background: var(--item-color-back);
box-shadow: var(--shadow);
box-shadow: var(--item-shadow);
border-radius: var(--rounded);
min-height: var(--item-height);
container-type: inline-size;
Expand Down Expand Up @@ -368,6 +369,7 @@ export default {
flex-shrink: 0;
}
.k-item[data-selectable="true"]:has(.k-item-options-checkbox input:checked) {
outline: var(--outline);
--item-color-back: light-dark(var(--color-blue-250), var(--color-blue-800));
--item-shadow: 0 1px 3px 0 rgba(0 0 0 / 0.25), 0 1px 2px 0 rgba(0 0 0 / 0.05);
}
</style>

0 comments on commit 660f2e7

Please sign in to comment.