Skip to content

Conversation

gerardo-rodriguez
Copy link
Member

@gerardo-rodriguez gerardo-rodriguez commented Jul 28, 2022

Overview

This PR fixes a bug where the content below the Sky Nav menu was not animating open/closed.

Changes include:

  • transition the document.body instead of all of the wrapper containers
  • update demo with more up-to-date header markup

Screenshots

better

Testing

The best test method will be using your local Cloud Four WordPress site via npm link.

Checkout both repos

  1. Checkout out the cloudfour.com-wp main branch locally
  2. Checkout this cloudfour.com-patterns branch locally

In the cloudfour.com-patterns repo

  1. npm ci && npm run build && npm link

In the cloudfour.com-wp repo

  1. In the theme directory: npm ci && npm link @cloudfour/patterns && npm run build

Confirm

  • At smaller viewports, the content below the Sky Nav should animate open/closed (try various pages)

Undo npm link

  1. In the WP repo: npm uninstall --no-save @cloudfour/patterns && npm i
  2. In the Patterns repo (delete global symlink): npm uninstall

@changeset-bot
Copy link

changeset-bot bot commented Jul 28, 2022

🦋 Changeset detected

Latest commit: 84232b6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cloudfour/patterns Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@gerardo-rodriguez gerardo-rodriguez self-assigned this Jul 28, 2022
@netlify
Copy link

netlify bot commented Jul 28, 2022

Deploy Preview for cloudfour-patterns ready!

Name Link
🔨 Latest commit 84232b6
🔍 Latest deploy log https://app.netlify.com/sites/cloudfour-patterns/deploys/62e301cb603aa8000927807a
😎 Deploy Preview https://deploy-preview-1986--cloudfour-patterns.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@gerardo-rodriguez gerardo-rodriguez changed the title Fix/sky nav animation Fix bug where content below Sky Nav was not animating Jul 28, 2022
@gerardo-rodriguez gerardo-rodriguez changed the title Fix bug where content below Sky Nav was not animating Sky Nav: Content below Sky Nav animates again Jul 28, 2022
@gerardo-rodriguez gerardo-rodriguez changed the title Sky Nav: Content below Sky Nav animates again Content below Sky Nav animates again Jul 28, 2022
@gerardo-rodriguez gerardo-rodriguez marked this pull request as ready for review July 28, 2022 18:57
calebeby
calebeby previously approved these changes Jul 28, 2022
Copy link
Member

@tylersticka tylersticka left a comment

Choose a reason for hiding this comment

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

Has someone tested this in all of our optimized browsers? I remember on the last version of the site we had to move away from animating document.body, but I can't remember if it was IE or some mobile browser that had issues with it.

@gerardo-rodriguez
Copy link
Member Author

Has someone tested this in all of our optimized browsers? I remember on the last version of the site we had to move away from animating document.body, but I can't remember if it was IE or some mobile browser that had issues with it.

@tylersticka I was able to confirm it works in the following browsers:

  • macOS Firefox
  • macOS Chrome
  • macOS Edge
  • macOS Safari
  • ios Safari via Simulator

Copy link
Member

@tylersticka tylersticka left a comment

Choose a reason for hiding this comment

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

I have not followed all of the described testing steps, but if this has been thoroughly tested and approved by two developers that's good enough for me. If it's misbehaving on production we'll spot it before launch (🤞)

@gerardo-rodriguez gerardo-rodriguez merged commit f047d75 into main Jul 28, 2022
@gerardo-rodriguez gerardo-rodriguez deleted the fix/sky-nav-animation branch July 28, 2022 22:07
@github-actions github-actions bot mentioned this pull request Jul 28, 2022
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.

The Sky Nav should animate open/closed at smaller viewports
3 participants