Skip to content

Commit b5f80df

Browse files
fix(pricing): use Accordion instead of PageAccordion (#217)
Co-authored-by: Benjamin Canac <[email protected]>
1 parent aab00e7 commit b5f80df

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

app/pages/pricing.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,16 @@ const items = ref([
7676
:title="page.faq.title"
7777
:description="page.faq.description"
7878
>
79-
<UPageAccordion
79+
<UAccordion
8080
:items="page.faq.items"
81-
multiple
82-
class="max-w-4xl mx-auto"
81+
:unmount-on-hide="false"
82+
:default-value="['0']"
83+
type="multiple"
84+
class="max-w-3xl mx-auto"
85+
:ui="{
86+
trigger: 'text-base text-highlighted',
87+
body: 'text-base text-muted'
88+
}"
8389
/>
8490
</UPageSection>
8591
</div>

content.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ export const collections = {
102102
items: z.array(
103103
z.object({
104104
label: z.string().nonempty(),
105-
content: z.string().nonempty(),
106-
defaultOpen: z.boolean().optional()
105+
content: z.string().nonempty()
107106
})
108107
)
109108
})

content/2.pricing.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ faq:
7070
items:
7171
- label: Is this a secure service?
7272
content: Qui sunt nostrud aliquip reprehenderit enim proident veniam magna aliquip velit occaecat eiusmod nisi deserunt sunt.
73-
defaultOpen: true
7473
- label: How can I cancel my subscription?
7574
content: Consectetur irure Lorem nostrud adipisicing aliqua mollit Lorem sit officia magna eiusmod cupidatat.
7675
- label: How does the free trial work?

0 commit comments

Comments
 (0)