Skip to content

Rotate refresh icon #332

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 30, 2017
Merged

Rotate refresh icon #332

merged 1 commit into from
May 30, 2017

Conversation

anteriovieira
Copy link
Contributor

Maybe it is not the best way to implement, but it would be nice to have a behavior that indicase the refresh.

refresh-icon

Copy link
Member

@posva posva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks nice, thanks 😄

@@ -78,7 +79,13 @@ export default {
}
},
refresh () {
this.refreshRotate += 180
const refleshIcon = this.$el.querySelector('.refresh-icon')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use a ref on the element instead

bridge.send('refresh')
bridge.on('flush', () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot to say that the bridge.on should be setup only once

@anteriovieira
Copy link
Contributor Author

Hi @posva , what do you think about changing the icon? An idea would be to leave the same chrome refresh icon.


@-moz-keyframes rotate
0%
-moz-transform rotate(0deg)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for prefixes because stylus will add them. So keeping the @keyframes rule with only transform is enough

@anteriovieira
Copy link
Contributor Author

@posva , what do you think of these latest changes?

Copy link
Member

@posva posva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good, thanks 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants