refactor(ui): dont default force-underline action links in header and section components

This commit is contained in:
ArneBo 2025-02-17 11:13:16 +01:00
parent 03d378fb57
commit 387651e5fa
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ const { style, ...fallthroughProps } = useAttrs()
<!-- Action! You can either specify `to` or `onClick`. -->
<component v-if="action" :is="'onClick' in action ? actionComponents.Button : actionComponents.Link"
:style="`margin-right: ${('primary' in props || 'secondary' in props || 'destructive' in props) ? '0px' : '-16px'}`"
force-underline thin-font min-content align-self="baseline"
thin-font min-content align-self="baseline"
v-bind="{...fallthroughProps, ...action}"
>
{{ action?.text }}

View File

@ -50,7 +50,7 @@ const headerGrid =
<Spacer grow />
<!-- Action! You can either specify `to` or `onClick`. -->
<component v-if="action" :is="'onClick' in action ? actionComponents.Button : actionComponents.Link"
ghost force-underline thin-font min-content align-self="baseline"
ghost thin-font min-content align-self="baseline"
:style="`margin-right: ${('primary' in props || 'secondary' in props || 'destructive' in props) ? '0px' : '-16px'}`"
v-bind="{...fallthroughProps, ...action}"
>