Skip to content

Commit db72166

Browse files
committed
fix(PrimeOutputText): remove wrapper span
1 parent 4ff2b69 commit db72166

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

src/components/PrimeOutputText.vue

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,8 @@ const { hasPrefix, hasPrefixIcon, hasSuffix, hasSuffixIcon } = useFormKitSection
3535
<span v-if="hasPrefix" class="formkit-prefix">
3636
{{ context?.prefix }}
3737
</span>
38-
<span
39-
:id="context?.id"
40-
:style="context?.attrs?.style"
41-
:class="context?.attrs?.class"
42-
>
43-
<span v-if="context?.html" v-html="textValue" />
44-
<span v-else v-text="textValue" />
45-
</span>
38+
<span v-if="context?.html" :id="context?.id" :class="context?.attrs?.class" :style="context?.attrs?.style" v-html="textValue" />
39+
<span v-else :id="context?.id" v-text="textValue" />
4640
<span v-if="hasSuffix" class="formkit-suffix">
4741
{{ context?.suffix }}
4842
</span>

src/sass/formkit-primevue.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,11 @@ $grid-breakpoints: (
173173
.p-formkit-data-view {
174174
.formkit-form {
175175
.formkit-outer {
176-
padding-bottom: 0;
176+
padding-bottom: 0.25rem;
177+
}
178+
179+
&.form-horizontal {
180+
padding-bottom: 0.8rem;
177181
}
178182

179183
.formkit-help {

0 commit comments

Comments
 (0)