Skip to content

Commit

Permalink
starting on styling
Browse files Browse the repository at this point in the history
  • Loading branch information
stevector committed Jul 24, 2024
1 parent 4311b81 commit 1a8a51f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/omniSidebarNav/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,23 @@ const OmniSidebarNav = ({
const OmniItems = getOmniItems();
const menuItems = getOmniSidebarActiveSection(activePage, OmniItems);

console.log(fallbackItems);
console.log(menuItems);

// If the caller is asking for a specific submenu, use that directly.
if (submenuPathToUse.length > 0) {
const submenuItems = findSubMenuItemsToUse(submenuPathToUse, OmniItems);
const submenuLinks = turnItemsIntoLinks(submenuItems, activePage);
return (
<SideNavCompact class="sidenav-compact"
<SideNavCompact className="sidenav-compact"
headingText={submenuLinks.linkContent}
menuItems={submenuLinks.links}
/>
);
} else if (menuItems) {
const OmniLinks = turnItemsIntoLinks(menuItems, activePage);
return (
<SideNavCompact class="sidenav-compact"
<SideNavCompact className="sidenav-compact"
headingText={OmniLinks.linkContent}
menuItems={OmniLinks.links}
/>
Expand Down
29 changes: 29 additions & 0 deletions src/components/omniSidebarNav/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@


/* Default menu */
@media (min-width: 641px) {
/* .guide-nav--mobile {
display: none;
} */


.sidenav-compact {
padding-block-start: var(--pds-spacing-xl);
padding-inline-end: var(--pds-spacing-xl);
}


/* h2.manual-guide-toc__heading {
font-size: var(--pds-typography-size-l);
line-height: var(--pds-typography-line-height-m);
margin-block-end: var(--pds-spacing-s);
} */
}

/* .manual-guide-toc__menu {
display: flex;
flex-direction: column;
list-style-type: none;
padding: 0;
row-gap: var(--pds-spacing-3xs);
} */

0 comments on commit 1a8a51f

Please sign in to comment.