File tree Expand file tree Collapse file tree 4 files changed +13
-10
lines changed Expand file tree Collapse file tree 4 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { AppContext } from 'utils/context/AppContext';
8
8
* Currently only displays a sample cart.
9
9
* Displays amount of items in cart.
10
10
*/
11
- const Cart = ( ) => {
11
+ const Cart = ( { stickyNav } ) => {
12
12
const [ cart ] = useContext ( AppContext ) ;
13
13
14
14
const productsCount =
@@ -22,7 +22,7 @@ const Cart = () => {
22
22
aria-label = "Handlekurv"
23
23
>
24
24
< svg
25
- className = " fill-current"
25
+ className = { ` ${ stickyNav ? ' fill-white' : 'fill- current' } ` }
26
26
xmlns = "https://www.w3.org/2000/svg"
27
27
width = "55"
28
28
height = "55"
@@ -40,7 +40,10 @@ const Cart = () => {
40
40
</ Link >
41
41
{ /*Cart quantity */ }
42
42
{ productsCount && (
43
- < span className = "w-6 h-6 pb-2 -mt-5 text-center text-white bg-black rounded-full" >
43
+ < span
44
+ className = { `w-6 h-6 pb-2 -mt-5 text-center rounded-full
45
+ ${ stickyNav ? 'text-black bg-white' : 'text-white bg-black' } ` }
46
+ >
44
47
{ productsCount }
45
48
</ span >
46
49
) }
Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ import Hamburger from '../Header/Hamburger.component';
13
13
const Stickynav = ( ) => (
14
14
< nav
15
15
id = "footer"
16
- className = "fixed bottom-0 z-50 w-full py-1 bg-white md:hidden lg:hidden xl:hidden"
16
+ className = "fixed bottom-0 z-50 w-full md:hidden lg:hidden xl:hidden"
17
17
>
18
- < div className = "container flex flex-wrap items-center justify-between px-6 py-3 mx-auto mt-0 md:min-w-96" >
18
+ < div className = "container flex flex-wrap items-center justify-between px-6 py-3 mx-auto mt-0 md:min-w-96 bg-blue-800 " >
19
19
< Hamburger />
20
20
< div
21
21
className = "order-3 hidden w-full md:flex md:items-center md:w-auto md:order-1"
@@ -41,7 +41,7 @@ const Stickynav = () => (
41
41
< div className = "flex items-center order-2 md:order-3" id = "nav-content" >
42
42
< Search />
43
43
< SVGMobileSearchIcon />
44
- < Cart />
44
+ < Cart stickyNav />
45
45
</ div >
46
46
</ div >
47
47
</ nav >
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ const Hamburger = () => {
49
49
const opacityFull = 'opacity-100 group-hover:opacity-100' ;
50
50
51
51
return (
52
- < div className = "z-50 md:hidden lg:hidden xl:hidden bg-gray -800" >
52
+ < div className = "z-50 md:hidden lg:hidden xl:hidden bg-blue -800" >
53
53
< button
54
54
className = "flex flex-col w-16 rounded justify-center items-center group"
55
55
data-cy = "hamburger"
Original file line number Diff line number Diff line change @@ -32,11 +32,11 @@ const SVGMobileSearchIcon = () => {
32
32
onClick = { ( ) => {
33
33
setisExpanded ( ! isExpanded ) ;
34
34
} }
35
- fill = "#000000 "
35
+ fill = "#fff "
36
36
xmlns = "https://www.w3.org/2000/svg"
37
37
viewBox = "0 0 50 50"
38
- width = "20px "
39
- height = "20px "
38
+ width = "35px "
39
+ height = "35px "
40
40
>
41
41
< path d = "M 21 3 C 11.601563 3 4 10.601563 4 20 C 4 29.398438 11.601563 37 21 37 C 24.355469 37 27.460938 36.015625 30.09375 34.34375 L 42.375 46.625 L 46.625 42.375 L 34.5 30.28125 C 36.679688 27.421875 38 23.878906 38 20 C 38 10.601563 30.398438 3 21 3 Z M 21 7 C 28.199219 7 34 12.800781 34 20 C 34 27.199219 28.199219 33 21 33 C 13.800781 33 8 27.199219 8 20 C 8 12.800781 13.800781 7 21 7 Z" />
42
42
</ svg >
You can’t perform that action at this time.
0 commit comments