Apply clicked class when loading

This commit is contained in:
Cadence Ember 2020-06-28 23:35:53 +12:00
parent eb0633e082
commit 0c0a3cf7a8
No known key found for this signature in database
GPG Key ID: 128B99B1B74A6412
2 changed files with 2 additions and 1 deletions

View File

@ -67,6 +67,7 @@ class NextPage extends FreezeWidth {
if (entries.some(entry => entry.isIntersecting && entry.intersectionRatio >= intersectionThreshold)) {
if (this.fetching) return
this.class("disabled")
this.class("clicked")
this.fetch()
}
}

View File

@ -43,7 +43,7 @@ body
&.disabled
cursor: default
&:hover:not(.disabled), &:active, &:focus
&:hover:not(.disabled), &:active, &:focus, &.clicked
color: map-get($theme, "foreground-power-secondary")
background-color: map-get($theme, "background-power-secondary")
border-color: map-get($theme, "background-power-tertiary")