diff --git a/docs/_includes/layout-templates/app.css.njk b/docs/_includes/layout-templates/app.css.njk index a64dd7f80..f3141b2b7 100644 --- a/docs/_includes/layout-templates/app.css.njk +++ b/docs/_includes/layout-templates/app.css.njk @@ -60,46 +60,11 @@ wa-layout[view="desktop"] main { } /* Navigation / Lists */ -.app-navigation { - display: flex; - flex-direction: column; - width: 100%; - height: 100%; +/** Not sure why, but when within the app-navigation, wa-nav-item is misaligned */ +.app-navigation wa-nav-item::part(control) { + align-items: stretch; } -.app-navigation__list { - margin: 0; - padding: 0; - list-style-type: ""; - display: flex; - flex-direction: column; - gap: 3px; - max-height: 100%; - overflow-y: auto; - height: 100%; - padding-bottom: 4px; -} - -.app-navigation__list li { - position: relative; - padding: 0px 8px; -} - -/* We use a blank marker to work around a safari bug with "list-style-type: none;" */ -.app-navigation__list li::marker { - content: ""; -} - -.app-navigation__list li.is-active wa-button { - --background-color: var(--wa-color-blue-40); - --background-color-active: var(--wa-color-blue-30); - --text-color: var(--wa-color-white); - --text-color-active: var(--wa-color-white); -} - -.app-navigation__list li wa-button { - --text-color: var(--wa-color-neutral-40); -} /* Highlights */ .highlight { diff --git a/docs/pages/components/nav-item.md b/docs/pages/components/nav-item.md index 3dd6a6af4..1cc630ebd 100644 --- a/docs/pages/components/nav-item.md +++ b/docs/pages/components/nav-item.md @@ -9,9 +9,44 @@ layout: component of a `` for accessibility purposes. ```html:preview - - Nav Item - + + + + Search + + + + + Notifications + + + + + + + Home + + + + + Playlists + + + + + Tracks + + + + + Settings + + + + + Help + + ``` ## Examples @@ -29,7 +64,6 @@ of a `` for accessibility purposes. ```html:preview - Home ``` @@ -42,4 +76,6 @@ of a `` for accessibility purposes. Nav Item -``` \ No newline at end of file +``` + +## Stuff diff --git a/src/components/nav-item/nav-item.component.ts b/src/components/nav-item/nav-item.component.ts index e4467784c..4d450b3ec 100644 --- a/src/components/nav-item/nav-item.component.ts +++ b/src/components/nav-item/nav-item.component.ts @@ -63,10 +63,10 @@ export default class WaNavItem extends WebAwesomeElement { >