Skip to content

Commit

Permalink
perf(infinitescroll): display none svg until needed
Browse files Browse the repository at this point in the history
By default the SVG spinner should be display none at all times. Only
display block the SVG when the infinite scroll is in the loading state.

Closes #5776
  • Loading branch information
adamdbradley committed Mar 13, 2016
1 parent 2000b1e commit 085088e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ionic/components/infinite-scroll/infinite-scroll.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ ion-infinite-scroll-content {
flex-direction: column;
justify-content: center;
height: 100%;
min-height: 84px;
text-align: center;
}

.infinite-loading {
display: none;
margin: $infinite-scroll-loading-margin;
width: 100%;
opacity: 0;
}

.infinite-loading-text {
Expand All @@ -41,7 +42,7 @@ ion-infinite-scroll-content {
// --------------------------------------------------

ion-infinite-scroll-content[state=loading] .infinite-loading {
opacity: 1;
display: block;
}

ion-infinite-scroll-content[state=disabled] {
Expand Down

0 comments on commit 085088e

Please sign in to comment.