Skip to content

Commit

Permalink
fixing border in NavSecondary
Browse files Browse the repository at this point in the history
  • Loading branch information
stephiescastle committed Sep 18, 2024
1 parent c2f72f5 commit 899fe95
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/vue/src/components/NavSecondary/NavSecondary.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
:class="{ 'bg-gradient-to-r from-black to-primary bg-transparent to-90% text-white': invert }"
>
<div
:class="`nav-secondary-container lg:container lg:px-0 lg:whitespace-normal lg:overflow-visible relative px-4 pb-0 mx-auto overflow-x-auto text-sm font-medium whitespace-nowrap ${invert ? 'border-0' : 'border-t border-gray-mid text-gray-mid-dark border-opacity-50'}`"
:class="`nav-secondary-container edu:border-0 lg:container lg:px-0 lg:whitespace-normal lg:overflow-visible relative px-4 pb-0 mx-auto overflow-x-auto text-sm font-medium whitespace-nowrap ${invert ? 'border-0' : 'border-t border-gray-mid text-gray-mid-dark border-opacity-50'}`"
>
<div class="lg:ml-0 2xl:-mr-3 lg:justify-end flex -ml-3">
<template v-for="(item, index) in theBreadcrumb">
Expand Down Expand Up @@ -179,7 +179,7 @@ export default defineComponent({
<style lang="scss">
.NavSecondary {
top: -1px; // for intersection observer to work
@apply sticky z-40 w-full bg-white border-b edu:border-0 border-gray-mid border-opacity-0 transition-border-opacity duration-150 edu:duration-300 ease-in;
@apply sticky z-40 w-full bg-white border-b border-gray-mid border-opacity-0 transition-border-opacity duration-150 edu:duration-300 ease-in;
@apply hidden;
@screen lg {
@apply block;
Expand All @@ -191,7 +191,8 @@ export default defineComponent({
}
}
&.-is-sticky {
&.-is-sticky,
&.-is-sticky-offset {
@apply border-gray-mid border-opacity-50;
}
Expand Down

0 comments on commit 899fe95

Please sign in to comment.