Skip to content

Commit

Permalink
fix(Masthead): applied ouia attributes to the correct node
Browse files Browse the repository at this point in the history
  • Loading branch information
mtorromeo committed Dec 14, 2023
1 parent f9e8679 commit 476caee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/components/Masthead/MastheadBrand.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<template>
<component
v-bind="ouiaProps"
:is="to ? 'router-link' : PassThrough"
v-slot="routerCtx"
:to="to"
:replace="replace"
custom
>
<component
v-bind="{...ouiaProps, ...$attrs}"
:is="component"
:class="styles.mastheadBrand"
:tabindex="component === 'a' ? 0 : undefined"
Expand All @@ -30,6 +30,7 @@ type RouterLinkContext = UnwrapRef<ReturnType<typeof useLink>>;
defineOptions({
name: 'PfMastheadBrand',
inheritAttrs: false,
});
export interface Props extends OUIAProps, /* @vue-ignore */ AnchorHTMLAttributes {
Expand Down

0 comments on commit 476caee

Please sign in to comment.