feat(docs): align documentation shell with HeroUI baseline
This commit is contained in:
@@ -63,7 +63,7 @@ export default defineComponent({
|
||||
},
|
||||
target: {
|
||||
type: String,
|
||||
default: "_self",
|
||||
default: undefined,
|
||||
},
|
||||
rel: {
|
||||
type: String,
|
||||
|
||||
@@ -26,7 +26,7 @@ const props = withDefaults(
|
||||
autoFocus?: boolean;
|
||||
}>(),
|
||||
{
|
||||
target: "_self",
|
||||
target: undefined,
|
||||
isDisabled: false,
|
||||
asChild: false,
|
||||
},
|
||||
@@ -263,8 +263,12 @@ defineExpose({
|
||||
:rel="rel"
|
||||
:download="downloadAttr"
|
||||
:class="slots.base()"
|
||||
:role="asChild ? 'link' : undefined"
|
||||
:tabindex="disabled ? -1 : asChild ? 0 : undefined"
|
||||
:role="(attrs.role as string | undefined) ?? (asChild ? 'link' : undefined)"
|
||||
:tabindex="
|
||||
disabled
|
||||
? -1
|
||||
: ((attrs.tabindex as number | undefined) ?? (asChild ? 0 : undefined))
|
||||
"
|
||||
:aria-disabled="disabled || undefined"
|
||||
:data-hovered="(!disabled && hovered) || undefined"
|
||||
:data-pressed="(!disabled && pressed) || undefined"
|
||||
|
||||
Reference in New Issue
Block a user