File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 11import 'prismjs/plugins/line-numbers/prism-line-numbers.css' ;
22import 'prismjs/themes/prism-okaidia.css' ;
33import React from 'react' ;
4+ import { MotionConfig } from 'framer-motion' ;
45import Header from '../Header' ;
56import Footer from '../Footer' ;
67import '../../styles/tokens.scss' ;
@@ -34,11 +35,13 @@ const Layout = ({
3435 location = { location }
3536 img = { img }
3637 />
37- < div className = "layout-container" >
38- < Header />
39- { children }
40- { showFooter && < Footer /> }
41- </ div >
38+ < MotionConfig reducedMotion = "user" >
39+ < div className = "layout-container" >
40+ < Header />
41+ { children }
42+ { showFooter && < Footer /> }
43+ </ div >
44+ </ MotionConfig >
4245 </ >
4346 ) ;
4447} ;
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ const SearchInput = ({ localSearchLearnPages }: SearchProps): JSX.Element => {
7474 < motion . div
7575 className = "searchBarContainer"
7676 animate = { isExpanded ? 'expanded' : 'collapsed' }
77+ initial = "collapsed"
7778 variants = { containerVariants }
7879 transition = { containerTransition }
7980 ref = { parentRef }
You can’t perform that action at this time.
0 commit comments