Skip to content

Commit

Permalink
fix: Breadcrumbs: color link
Browse files Browse the repository at this point in the history
  • Loading branch information
aqordeon committed May 31, 2024
1 parent 3c7bd0c commit bbbd6f6
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions resources/js/Components/Navigation/Breadcrumbs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,8 @@ router.on('navigate', (event) => {
</component>
</div>
<span class="mx-3 select-none">→</span>
<component :is="breadcrumb.modelWithIndex?.model?.route?.name ? Link : 'div'" class="text-indigo-400 hover:text-indigo-500" :href="breadcrumb.modelWithIndex?.model?.route?.name ? route(breadcrumb.modelWithIndex.model.route.name, breadcrumb.modelWithIndex.model.route.parameters) : '#'">
<span>
{{ breadcrumb.modelWithIndex.model.label }}
</span>
<component :is="breadcrumb.modelWithIndex?.model?.route?.name ? Link : 'div'" class="breadcrumbSection" :href="breadcrumb.modelWithIndex?.model?.route?.name ? route(breadcrumb.modelWithIndex.model.route.name, breadcrumb.modelWithIndex.model.route.parameters) : '#'">
{{ breadcrumb.modelWithIndex.model.label }}
</component>
</template>
<span v-if="breadcrumb.suffix" :class="breadcrumb.type ? 'ml-1' : ''" class="italic">{{ breadcrumb.suffix }}</span>
Expand Down Expand Up @@ -226,3 +224,14 @@ router.on('navigate', (event) => {
</div>
</nav>
</template>

<style lang="scss" scope>
.breadcrumbSection {
color: v-bind('`color-mix(in srgb, ${layout?.app?.theme[0]} 90%, white)`') !important;

&:hover {
color: v-bind('`color-mix(in srgb, ${layout?.app?.theme[0]} 85%, black)`') !important;
}
}

</style>

0 comments on commit bbbd6f6

Please sign in to comment.