fix hamburger spelling

switch fill color to "currentColor" to allow using dark mode responsive "color" prop
pull/26459/head^2
Paul Wackerow 2 years ago
parent d93e1b5d4d
commit e77c1507f5
No known key found for this signature in database
GPG Key ID: BB63E296FE9CAB8D
  1. 6
      src/components/UI/Header.tsx
  2. 6
      src/components/UI/icons/HamburgerIcon.tsx
  3. 2
      src/components/UI/icons/index.ts

@ -2,7 +2,7 @@ import { Box, Flex, Input, InputGroup, Link, Stack, Text } from '@chakra-ui/reac
import { FC } from 'react'; import { FC } from 'react';
import NextLink from 'next/link'; import NextLink from 'next/link';
import { HamburguerIcon, LensIcon, MoonIcon } from '../UI/icons'; import { HamburgerIcon, LensIcon, MoonIcon } from '../UI/icons';
import { DOCS_PAGE, DOWNLOADS_PAGE } from '../../constants'; import { DOCS_PAGE, DOWNLOADS_PAGE } from '../../constants';
export const Header: FC = () => { export const Header: FC = () => {
@ -103,9 +103,9 @@ export const Header: FC = () => {
<MoonIcon /> <MoonIcon />
</Box> </Box>
{/* HAMBURGUER MENU */} {/* HAMBURGER MENU */}
<Box p={4} display={{ base: 'block', md: 'none' }}> <Box p={4} display={{ base: 'block', md: 'none' }}>
<HamburguerIcon /> <HamburgerIcon color="primary" />
</Box> </Box>
</Flex> </Flex>
</Flex> </Flex>

@ -1,7 +1,7 @@
import { createIcon } from '@chakra-ui/icons'; import { createIcon } from '@chakra-ui/icons';
export const HamburguerIcon = createIcon({ export const HamburgerIcon = createIcon({
displayName: 'HamburguerIcon', displayName: 'HamburgerIcon',
viewBox: '0 0 22 14', viewBox: '0 0 22 14',
path: ( path: (
<svg width={22} height={14} fill='none' xmlns='http://www.w3.org/2000/svg'> <svg width={22} height={14} fill='none' xmlns='http://www.w3.org/2000/svg'>
@ -9,7 +9,7 @@ export const HamburguerIcon = createIcon({
fillRule='evenodd' fillRule='evenodd'
clipRule='evenodd' clipRule='evenodd'
d='M0 .5h22v.97H0V.5Zm0 6.017h22v.97H0v-.97Zm22 6.013H0v.97h22v-.97Z' d='M0 .5h22v.97H0V.5Zm0 6.017h22v.97H0v-.97Zm22 6.013H0v.97h22v-.97Z'
fill='#11866F' fill='currentColor'
/> />
</svg> </svg>
) )

@ -1,6 +1,6 @@
export * from './DiscordIcon' export * from './DiscordIcon'
export * from './GitHubIcon' export * from './GitHubIcon'
export * from './HamburguerIcon'; export * from './HamburgerIcon';
export * from './LensIcon'; export * from './LensIcon';
export * from './MoonIcon'; export * from './MoonIcon';
export * from './TwitterIcon' export * from './TwitterIcon'

Loading…
Cancel
Save