Skip to content
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

Corrected spinner animation #4005

Merged
merged 4 commits into from
Apr 19, 2019
Merged

Corrected spinner animation #4005

merged 4 commits into from
Apr 19, 2019

Conversation

ranbena
Copy link
Contributor

@ranbena ranbena commented Apr 19, 2019

  Demo
❌ Before
✅ After
ezgif com-video-to-gif

The bug

fa-spinner was not meant to spin smoothly but in steps.

And this is important because why? 🙄

I work a lot with Cypress and it's hurting my eyes and crushing my soul! 😱😵😖😭

The fix

Changed to the dedicated 8 step fa-pulse animation.

Tested?

Nope. But it looks riskless 😅

@CLAassistant
Copy link

CLAassistant commented Apr 19, 2019

CLA assistant check
All committers have signed the CLA.

packages/runner/src/header/header.jsx Outdated Show resolved Hide resolved
@flotwig flotwig merged commit d172e95 into cypress-io:develop Apr 19, 2019
@flotwig
Copy link
Contributor

flotwig commented Apr 19, 2019

Thanks for the PR!

@kuceb
Copy link
Contributor

kuceb commented Apr 19, 2019

@ranbena I see where you're coming from, but if you look at
https://fontawesome.com/v4.7.0/examples/

there are multiple examples of fa-spinner with fa-spin

I have no preference

@kuceb
Copy link
Contributor

kuceb commented Apr 19, 2019

@ranbena Here's how you can add this today. In support/index.js do:

addGlobalStyle(`
.fa-spinner.fa-spin {
	animation: fa-spin 1s infinite steps(8)
}
`)

function addGlobalStyle(css) {
  var head, style
  head = window.top.document.getElementsByTagName('head')[0]
  if (!head) {
    return
  }
  style = window.top.document.createElement('style')
  style.type = 'text/css'
  style.innerHTML = css
  head.appendChild(style)
}

@ranbena
Copy link
Contributor Author

ranbena commented Apr 20, 2019

@ranbena Here's how you can add this today. In support/index.js do:

addGlobalStyle(`
.fa-spinner.fa-spin {
	animation: fa-spin 1s infinite steps(8)
}
`)

Hehe 10x @bkucera :)

brian-mann added a commit that referenced this pull request Apr 20, 2019
laurinenas pushed a commit to laurinenas/cypress that referenced this pull request Apr 28, 2019
  | Demo
------------ | -------------
❌ Before<br />✅ After | ![ezgif com-video-to-gif](https://user-images.githubusercontent.com/486954/56430388-e538ca00-62ce-11e9-9748-6f0eb249a69d.gif)

### The bug
`fa-spinner` was not meant to spin smoothly but in steps.

### And this is important because why? 🙄
I work a lot with Cypress and it's hurting my eyes and crushing my soul! 😱😵😖😭

### The fix
Changed to the dedicated 8 step `fa-pulse` animation.

### Tested?
Nope. But it looks riskless 😅
laurinenas pushed a commit to laurinenas/cypress that referenced this pull request Apr 28, 2019
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.

None yet

4 participants