Skip to content

Commit

Permalink
fix(Breadcrumb): allow aria-current to be overrideable
Browse files Browse the repository at this point in the history
Related to #1856
  • Loading branch information
benjamincanac committed Jun 11, 2024
1 parent 838d6c8 commit ebfb835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/components/navigation/Breadcrumb.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<ULink
as="span"
:class="[ui.base, index === links.length - 1 ? ui.active : !!link.to ? ui.inactive : '']"
v-bind="getULinkProps(link)"
:aria-current="index === links.length - 1 ? 'page' : undefined"
v-bind="getULinkProps(link)"
@click="link.click"
>
<slot name="icon" :link="link" :index="index" :is-active="index === links.length - 1">
Expand Down

0 comments on commit ebfb835

Please sign in to comment.