Fixed Navbar audit

This commit is contained in:
Firq 2024-01-03 20:39:58 +01:00
parent e0cf2af0c0
commit 838190b8e5
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
3 changed files with 44 additions and 12 deletions
src/layouts

View file

@ -63,7 +63,22 @@ const mapped_navdata = navdata.map((item) => ({
<Navbar>
{
mapped_navdata.map((item) => (
<NavbarEntry currentPage={currentpage} {...item} />
<NavbarEntry
currentPage={currentpage}
navtype="desktop"
{...item}
slot="desktop"
/>
))
}
{
mapped_navdata.map((item) => (
<NavbarEntry
currentPage={currentpage}
navtype="mobile"
{...item}
slot="mobile"
/>
))
}
</Navbar>
@ -88,4 +103,15 @@ const mapped_navdata = navdata.map((item) => ({
background: var(--c-lightgray);
margin: 0px;
}
.visually-hidden {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
</style>