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

Fix SideNav "jumping" in Safari #868

Merged
merged 1 commit into from
Aug 22, 2019
Merged

Conversation

simurai
Copy link
Contributor

@simurai simurai commented Aug 21, 2019

This removes the animation on the "indicator bars".

Reasoning

It causes the nav items to "jump" when hovering in Safari:

jump

Alternatives

We could fix the "jumping" by adding will-change: transform or similar, but that creates additional GPU layers that might have other side effects depending on the rest of the page. Removing the animation seems safer.


Fixes #864

@vercel
Copy link

vercel bot commented Aug 21, 2019

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

Latest deployment for this branch: https://primer-css-git-sidenav-animation.primer.now.sh

Copy link
Contributor

@shawnbot shawnbot left a comment

Choose a reason for hiding this comment

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

Nice, thanks!

@shawnbot shawnbot mentioned this pull request Aug 22, 2019
10 tasks
@shawnbot shawnbot changed the base branch from master to release-12.6.1 August 22, 2019 18:23
@shawnbot shawnbot merged commit 4fb1ab7 into release-12.6.1 Aug 22, 2019
@shawnbot shawnbot deleted the sidenav-animation branch August 22, 2019 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants