-
Notifications
You must be signed in to change notification settings - Fork 22
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
Ch/qa scrolling #458
Ch/qa scrolling #458
Conversation
@@ -4,6 +4,7 @@ import Link from 'gatsby-link' | |||
import Helmet from 'react-helmet' | |||
import VigetLogo from '../components/viget-logo' | |||
|
|||
import 'intersection-observer' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
polyfill
@@ -35,7 +49,9 @@ export default class IndexPage extends React.Component { | |||
) | |||
|
|||
//start observing each graphic | |||
this.graphics.forEach(graphic => observer.observe(graphic)) | |||
for (let i = 0; i < this.graphics.length; i++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed this to a for loop because it wasn't working in IE
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 only thing is the failed circle test, not sure what that's about
Codecov Report
@@ Coverage Diff @@
## ch/layout #458 +/- ##
==========================================
Coverage 76.51% 76.51%
==========================================
Files 44 44
Lines 1367 1367
Branches 253 253
==========================================
Hits 1046 1046
Misses 263 263
Partials 58 58 Continue to review full report at Codecov.
|
* starting styling layout and structure of mobile * added styling for desktop layout * tweaked heading margin * ran yarn format * ran yarn format * removed prettier dev dependency * Ch/qa scrolling (#458)
* started implementing functionality to change bg color * refactored footer for changing bg color, refactored scss to be more modular * rebased branch, refactored to take advantage of rerender * refactored color changing functionality so that nav and footer can change color as well * ran yarn format * removed prettier as dev dependency to use root rules instead * Ch/layout (#457) * Ch/qa scrolling (#458)
* started implementing functionality to change bg color * refactored footer for changing bg color, refactored scss to be more modular * rebased branch, refactored to take advantage of rerender * refactored color changing functionality so that nav and footer can change color as well * ran yarn format * removed prettier as dev dependency to use root rules instead * Ch/layout (#457) * Ch/qa scrolling (#458)
* trial 1 for locked scroll behavior * trying out two columns layout * experimenting with react-intersection-observer * set up IntersectionObserver and have it pull from json file * restructured base layout for new design and did basic styling * implementing intersection observer to change text on scroll * added functionality to change view by button and started refactoring * tweaked Intersection Observer to run smoother, added third section * removed unnecessary comments * remove comment * ran yarn format * fixed weird formatting by yarn * fixed more weird formatting by yarn * tweaking based on PR comments * finished refactoring to change classnames on rerender * refactored to rerender based on one state property only * changed var name to be more clear * got rid of unnecessary ids * ran yarn format * removed prettier as dev dependency and ran yarn format * Ch/bg color change (#456) * Ch/layout (#457) * Ch/qa scrolling (#458) * moved polyfill inside componentDidMount * trying new way to import polyfill
This PR does some initial QA on layout and scroll behavior. It:
position: sticky
on IE