Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
a6da5d8a
Commit
a6da5d8a
authored
Nov 01, 2024
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trying to make google happy
parent
af0baef2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
NavLinkGroup.tsx
ui/snippets/navigation/vertical/NavLinkGroup.tsx
+5
-5
NavigationDesktop.pw.tsx
ui/snippets/navigation/vertical/NavigationDesktop.pw.tsx
+2
-2
No files found.
ui/snippets/navigation/vertical/NavLinkGroup.tsx
View file @
a6da5d8a
...
...
@@ -2,7 +2,6 @@ import {
Text
,
HStack
,
Box
,
Link
,
PopoverTrigger
,
PopoverContent
,
PopoverBody
,
...
...
@@ -38,11 +37,12 @@ const NavLinkGroup = ({ item, isCollapsed }: Props) => {
<
Popover
trigger=
"hover"
placement=
"right-start"
isLazy
// should not be lazy to help google indexing pages
isLazy=
{
false
}
gutter=
{
8
}
>
<
PopoverTrigger
>
<
Link
<
Box
{
...
styleProps
.
itemProps
}
w=
{
{
lg
:
isExpanded
?
'
180px
'
:
'
60px
'
,
xl
:
isCollapsed
?
'
60px
'
:
'
180px
'
}
}
pl=
{
{
lg
:
isExpanded
?
2
:
'
15px
'
,
xl
:
isCollapsed
?
'
15px
'
:
2
}
}
...
...
@@ -73,14 +73,14 @@ const NavLinkGroup = ({ item, isCollapsed }: Props) => {
transitionTimingFunction=
"ease"
/>
</
HStack
>
</
Link
>
</
Box
>
</
PopoverTrigger
>
<
PopoverContent
width=
"252px"
top=
{
{
lg
:
isExpanded
?
'
-16px
'
:
0
,
xl
:
isCollapsed
?
0
:
'
-16px
'
}
}
>
<
PopoverBody
p=
{
4
}
>
<
Text
variant=
"secondary"
fontSize=
"sm"
mb=
{
1
}
display=
{
{
lg
:
isExpanded
?
'
none
'
:
'
block
'
,
xl
:
isCollapsed
?
'
block
'
:
'
none
'
}
}
>
{
item
.
text
}
</
Text
>
<
VStack
spacing=
{
1
}
alignItems=
"start"
>
<
VStack
spacing=
{
1
}
alignItems=
"start"
as=
"ul"
>
{
item
.
subItems
.
map
((
subItem
,
index
)
=>
Array
.
isArray
(
subItem
)
?
(
<
Box
key=
{
index
}
...
...
ui/snippets/navigation/vertical/NavigationDesktop.pw.tsx
View file @
a6da5d8a
...
...
@@ -116,7 +116,7 @@ test.describe('with submenu', () => {
</
Flex
>,
{
hooksConfig
},
);
await
page
.
locator
(
'
a
[aria-label="Blockchain link group"]
'
).
hover
();
await
page
.
locator
(
'
div
[aria-label="Blockchain link group"]
'
).
hover
();
});
test
(
''
,
async
()
=>
{
...
...
@@ -239,7 +239,7 @@ test.describe('with highlighted routes', () => {
});
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
();
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment