From b475e747eb7b9cc59d2b3507ed957aae877582b2 Mon Sep 17 00:00:00 2001 From: Stephanie Smith Date: Wed, 21 Aug 2024 12:46:55 -0700 Subject: [PATCH] fix: adjustments to NavJumpMenu (#556) * adjustments to NavJumpMenu * disabling percy, over quota --- .github/workflows/storybook.yml | 62 +++++++++---------- .../components/NavJumpMenu/NavJumpMenu.vue | 16 ++++- .../NavSecondary/NavSecondaryDropdown.vue | 9 ++- .../NavSecondary/NavSecondaryLink.vue | 10 +-- .../PageEduExplainerArticle.vue | 1 + .../edu/PageEduLesson/PageEduLesson.vue | 1 + .../PageEduNewsDetail/PageEduNewsDetail.vue | 1 + 7 files changed, 58 insertions(+), 42 deletions(-) diff --git a/.github/workflows/storybook.yml b/.github/workflows/storybook.yml index 54f4db74..ffc557ee 100644 --- a/.github/workflows/storybook.yml +++ b/.github/workflows/storybook.yml @@ -80,37 +80,37 @@ jobs: "pnpm --filter @explorer-1/vue-storybook start" \ "pnpm --filter @explorer-1/vue-storybook test:ci" - visual-tests: - needs: [build, a11y-tests] - timeout-minutes: 30 - runs-on: ubuntu-latest - steps: - - name: Checkout 🛎️ - uses: actions/checkout@v4 - - - name: Setup pnpm - uses: pnpm/action-setup@v4 - - - name: Set up Node ⬢ - uses: actions/setup-node@v4 - with: - node-version-file: '.nvmrc' - cache: 'pnpm' - - - name: Install dependencies 🧱 - run: pnpm i - - - name: Download storybook build - uses: actions/download-artifact@v3 - with: - name: storybook - path: apps/vue-storybook/storybook_compiled - - - name: Run Percy - id: run-percy - env: - PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }} - run: pnpm --filter @explorer-1/vue-storybook percy + # visual-tests: + # needs: [build, a11y-tests] + # timeout-minutes: 30 + # runs-on: ubuntu-latest + # steps: + # - name: Checkout 🛎️ + # uses: actions/checkout@v4 + + # - name: Setup pnpm + # uses: pnpm/action-setup@v4 + + # - name: Set up Node ⬢ + # uses: actions/setup-node@v4 + # with: + # node-version-file: '.nvmrc' + # cache: 'pnpm' + + # - name: Install dependencies 🧱 + # run: pnpm i + + # - name: Download storybook build + # uses: actions/download-artifact@v3 + # with: + # name: storybook + # path: apps/vue-storybook/storybook_compiled + + # - name: Run Percy + # id: run-percy + # env: + # PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }} + # run: pnpm --filter @explorer-1/vue-storybook percy publish: needs: [build, a11y-tests] diff --git a/packages/vue/src/components/NavJumpMenu/NavJumpMenu.vue b/packages/vue/src/components/NavJumpMenu/NavJumpMenu.vue index 20c490a9..fdf35337 100644 --- a/packages/vue/src/components/NavJumpMenu/NavJumpMenu.vue +++ b/packages/vue/src/components/NavJumpMenu/NavJumpMenu.vue @@ -50,6 +50,7 @@ interface NavJumpMenuProps { headingLevel?: string invert?: boolean enabled?: boolean + dropdownText?: string } const props = withDefaults(defineProps(), { @@ -59,7 +60,8 @@ const props = withDefaults(defineProps(), { headingLevel: 'h2', enabled: true, invert: true, - hidden: false + hidden: false, + dropdownText: 'Jump to…' }) const NavJumpMenuRef = ref() @@ -102,7 +104,7 @@ const theBreadcrumbs = computed(() => { path: '#siteTop' } const jumpMenu: BreadcrumbPathObject = { - title: 'Jump to…', + title: props.dropdownText, path: '#', children: theJumpLinks.value as BreadcrumbPathObject[] } @@ -139,5 +141,15 @@ watch( @apply opacity-100 transition-all pointer-events-auto; } } + .NavSecondaryLink.secondary-root { + span { + @apply border-primary #{!important}; + } + &.-invert { + span { + @apply border-white #{!important}; + } + } + } } diff --git a/packages/vue/src/components/NavSecondary/NavSecondaryDropdown.vue b/packages/vue/src/components/NavSecondary/NavSecondaryDropdown.vue index 6e73e390..38eb7236 100644 --- a/packages/vue/src/components/NavSecondary/NavSecondaryDropdown.vue +++ b/packages/vue/src/components/NavSecondary/NavSecondaryDropdown.vue @@ -9,7 +9,7 @@ { :title="data.title" :blocks="consolidatedBlocks" :enabled="true" + dropdown-text="In this lesson" />