-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3718626
commit deb67dd
Showing
7 changed files
with
84 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,36 @@ | ||
<script setup lang="ts"> | ||
defineProps<{ | ||
const props = defineProps<{ | ||
navItems: AccordianNavItem[] | undefined | ||
}>() | ||
const getStartedNavItems = computed(() => { | ||
return props.navItems?.filter(item => (item.children?.length ?? 0) > 1) || [] | ||
}) | ||
const exceptgetStartedNavItems = computed(() => { | ||
return props.navItems?.filter(item => item.children?.length === 1) || [] | ||
}) | ||
</script> | ||
<template> | ||
<aside class="mx-2 min-w-48 max-w-min py-4" data-testid="docs-side-navigation"> | ||
<SbcDocsAccordianNavigation :nav-items="navItems" /> | ||
<aside class="mx-2 min-w-56 max-w-min border-r-2 border-bcGovColor-hairlinesOnWhite " data-testid="docs-side-navigation"> | ||
<div class="flex items-center text-base font-semibold uppercase "> | ||
{{ $t('SbcNavigation.intro') }} | ||
</div> | ||
<SbcDocsAccordianNavigation :nav-items="getStartedNavItems" /> | ||
<div class="flex items-center text-base font-semibold uppercase "> | ||
{{ $t('SbcNavigation.devproducts') }} | ||
</div> | ||
<div v-for="item in exceptgetStartedNavItems" :key="item.label"> | ||
<ULink | ||
:to="item.children?.[0]?.to" | ||
active-class="text-primary-500 bg-bcGovColor-lightBlue font-semibold" | ||
:class="[ | ||
'focus-visible:outline-{color}-500 mx-6 flex h-[40px] min-h-9 w-[215px] items-center gap-3 rounded-none px-1 font-sans text-sm font-normal text-bcGovColor-midGray transition-colors duration-300 ease-in-out hover:bg-bcGovBlue-50 hover:font-semibold hover:text-bcGovColor-activeBlue focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 dark:text-white dark:hover:bg-bcGovBlue-100/10 dark:focus-visible:outline-white ' | ||
]" | ||
> | ||
{{ item.label }} | ||
</ULink> | ||
</div> | ||
</aside> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters