Skip to content

Commit

Permalink
Merge pull request #13 from selsa-inube/cmarin/ids1649/adjustment-to-…
Browse files Browse the repository at this point in the history
…use-semantic-html

Update Navigation to Use HTML `<nav>` Tag for Semantics
  • Loading branch information
cmarin001 committed Jun 4, 2024
2 parents 5868394 + 56d5851 commit 14bea4b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
22 changes: 13 additions & 9 deletions src/Nav/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import { Icon } from "@inubekit/icon";

interface INav {
navigation: INavNavigation;
logoutPath: string;
logoutTitle: string;
logoutPath?: string;
logoutTitle?: string;
collapse?: boolean;
}

Expand Down Expand Up @@ -204,13 +204,17 @@ const Nav = (props: INav) => {
logoutTitle={logoutTitle}
/>
)}
<SeparatorLine />
<NavLink
id="logout"
label={logoutTitle}
icon={<MdLogout />}
path={logoutPath}
/>
{logoutTitle && logoutPath && (
<>
<SeparatorLine />
<NavLink
id="logout"
label={logoutTitle}
icon={<MdLogout />}
path={logoutPath}
/>
</>
)}
</Stack>
<StyledFooter>
<Stack justifyContent="center">
Expand Down
2 changes: 1 addition & 1 deletion src/Nav/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const StyledFooter = styled.footer`
width: 100%;
`;

const StyledNav = styled.div`
const StyledNav = styled.nav`
width: 248px;
box-sizing: border-box;
background-color: ${({ theme }) =>
Expand Down

0 comments on commit 14bea4b

Please sign in to comment.