Skip to content

Commit

Permalink
feat(QSkeleton): only use cursor wait when there is animation quasarf…
Browse files Browse the repository at this point in the history
  • Loading branch information
pdanpdan authored Mar 17, 2020
1 parent 12d35fd commit 2522180
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ui/src/components/skeleton/QSkeleton.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default Vue.extend({

classes () {
return `q-skeleton--${this.isDark === true ? 'dark' : 'light'} q-skeleton--type-${this.type}` +
(this.animation !== 'none' ? ` q-skeleton--anim-${this.animation}` : '') +
(this.animation !== 'none' ? ` q-skeleton--anim q-skeleton--anim-${this.animation}` : '') +
(this.square === true ? ' q-skeleton--square' : '') +
(this.bordered === true ? ' q-skeleton--bordered' : '')
}
Expand Down
4 changes: 3 additions & 1 deletion ui/src/components/skeleton/QSkeleton.sass
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
.q-skeleton
cursor: wait
background: $separator-color
border-radius: $generic-border-radius

&--anim
cursor: wait

/*
maintain size even with border
for types that have height specified
Expand Down
4 changes: 3 additions & 1 deletion ui/src/components/skeleton/QSkeleton.styl
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
.q-skeleton
cursor: wait
background: $separator-color
border-radius: $generic-border-radius

&--anim
cursor: wait

/*
maintain size even with border
for types that have height specified
Expand Down

0 comments on commit 2522180

Please sign in to comment.