Commit a6da5d8a authored by isstuev's avatar isstuev

trying to make google happy

parent af0baef2
...@@ -2,7 +2,6 @@ import { ...@@ -2,7 +2,6 @@ import {
Text, Text,
HStack, HStack,
Box, Box,
Link,
PopoverTrigger, PopoverTrigger,
PopoverContent, PopoverContent,
PopoverBody, PopoverBody,
...@@ -38,11 +37,12 @@ const NavLinkGroup = ({ item, isCollapsed }: Props) => { ...@@ -38,11 +37,12 @@ const NavLinkGroup = ({ item, isCollapsed }: Props) => {
<Popover <Popover
trigger="hover" trigger="hover"
placement="right-start" placement="right-start"
isLazy // should not be lazy to help google indexing pages
isLazy={ false }
gutter={ 8 } gutter={ 8 }
> >
<PopoverTrigger> <PopoverTrigger>
<Link <Box
{ ...styleProps.itemProps } { ...styleProps.itemProps }
w={{ lg: isExpanded ? '180px' : '60px', xl: isCollapsed ? '60px' : '180px' }} w={{ lg: isExpanded ? '180px' : '60px', xl: isCollapsed ? '60px' : '180px' }}
pl={{ lg: isExpanded ? 2 : '15px', xl: isCollapsed ? '15px' : 2 }} pl={{ lg: isExpanded ? 2 : '15px', xl: isCollapsed ? '15px' : 2 }}
...@@ -73,14 +73,14 @@ const NavLinkGroup = ({ item, isCollapsed }: Props) => { ...@@ -73,14 +73,14 @@ const NavLinkGroup = ({ item, isCollapsed }: Props) => {
transitionTimingFunction="ease" transitionTimingFunction="ease"
/> />
</HStack> </HStack>
</Link> </Box>
</PopoverTrigger> </PopoverTrigger>
<PopoverContent width="252px" top={{ lg: isExpanded ? '-16px' : 0, xl: isCollapsed ? 0 : '-16px' }}> <PopoverContent width="252px" top={{ lg: isExpanded ? '-16px' : 0, xl: isCollapsed ? 0 : '-16px' }}>
<PopoverBody p={ 4 }> <PopoverBody p={ 4 }>
<Text variant="secondary" fontSize="sm" mb={ 1 } display={{ lg: isExpanded ? 'none' : 'block', xl: isCollapsed ? 'block' : 'none' }}> <Text variant="secondary" fontSize="sm" mb={ 1 } display={{ lg: isExpanded ? 'none' : 'block', xl: isCollapsed ? 'block' : 'none' }}>
{ item.text } { item.text }
</Text> </Text>
<VStack spacing={ 1 } alignItems="start"> <VStack spacing={ 1 } alignItems="start" as="ul">
{ item.subItems.map((subItem, index) => Array.isArray(subItem) ? ( { item.subItems.map((subItem, index) => Array.isArray(subItem) ? (
<Box <Box
key={ index } key={ index }
......
...@@ -116,7 +116,7 @@ test.describe('with submenu', () => { ...@@ -116,7 +116,7 @@ test.describe('with submenu', () => {
</Flex>, </Flex>,
{ hooksConfig }, { hooksConfig },
); );
await page.locator('a[aria-label="Blockchain link group"]').hover(); await page.locator('div[aria-label="Blockchain link group"]').hover();
}); });
test('', async() => { test('', async() => {
...@@ -239,7 +239,7 @@ test.describe('with highlighted routes', () => { ...@@ -239,7 +239,7 @@ test.describe('with highlighted routes', () => {
}); });
test('with submenu', async({ page }) => { test('with submenu', async({ page }) => {
await page.locator('a[aria-label="Blockchain link group"]').hover(); await page.locator('div[aria-label="Blockchain link group"]').hover();
await expect(component).toHaveScreenshot(); await expect(component).toHaveScreenshot();
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment