Skip to content

Commit

Permalink
fix: block user selection in skeleton
Browse files Browse the repository at this point in the history
Fixes #9000
  • Loading branch information
ajitzero authored Sep 12, 2024
1 parent a851e15 commit 4a74c2c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions projects/kit/directives/skeleton/skeleton.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,22 @@
box-shadow: none !important;
filter: contrast(0) brightness(0);
animation: tuiSkeleton ease-in-out 1s infinite alternate;
user-select: none;
pointer-events: none;

&[data-tui-skeleton] {
background: transparent !important;
user-select: none;
pointer-events: none;

&::before {
content: attr(data-tui-skeleton);
background: var(--tui-background-base);
font-size: smaller;
box-decoration-break: clone;
border-radius: 0.25rem;
user-select: none;
pointer-events: none;
}
}
}
Expand Down

0 comments on commit 4a74c2c

Please sign in to comment.