Skip to content

Commit ead1420

Browse files
committed
OEL-3735: Accordion component update.
1 parent 2465099 commit ead1420

File tree

3 files changed

+32
-12
lines changed

3 files changed

+32
-12
lines changed

components/accordion/accordion.component.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,12 @@ slots:
44
title:
55
title: Title
66
description: 'Title of the accordion.'
7-
title_tag:
8-
title: 'Title tag'
9-
description: 'The tag to use for the title. Defaults to h2.'
107
expand_button_label:
118
title: 'Expand button'
129
description: 'Label of the expand button.'
1310
collapse_button_label:
1411
title: 'Collapse button'
1512
description: 'Label of the collapse button.'
16-
items:
17-
title: 'Accordion items'
18-
description: 'List of accordion items.'
1913
props:
2014
type: object
2115
properties:
@@ -27,3 +21,18 @@ props:
2721
title: 'Accordion item opened by default'
2822
description: 'Index value of the item to open (starting from 1), all closed by default (0).'
2923
type: number
24+
title_tag:
25+
title: 'Title tag'
26+
description: 'The tag to use for the title. Defaults to h2.'
27+
type: string
28+
items:
29+
title: 'Accordion items'
30+
description: 'List of accordion items.'
31+
type: array
32+
items:
33+
type: object
34+
properties:
35+
title:
36+
type: string
37+
content:
38+
type: string
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Expand / Collapse buttons
2+
slots:
3+
title: 'This is the title of this accordion.'
4+
expand_button_label: 'Expand'
5+
collapse_button_label: 'Collapse'
6+
props:
7+
items:
8+
- title: 'Jobs, Growth, Investment and Competitiveness with an additional quite long string'
9+
content: 'Lorem fistrum eiusmod cillum elit papaar officia aliquip dolore velit. Pellentesque dolor sapien, mollis fringilla ultricies sed, lacinia vel nibh. Nulla auctor arcu risus, nec facilisis odio aliquet sed.'
10+
- title: 'Energy Union'
11+
content: 'Advice on living, working or travelling in the EU, on visas and immigration for non-EU citizens, European culture. Plus some extra text to make it a little bit longer.'
12+
bare_layout: false
13+
open_item: 1
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
name: Preview
1+
name: Default
22
slots:
33
title: 'This is the title of this accordion.'
4+
props:
45
items:
5-
-
6-
title: 'Jobs, Growth, Investment and Competitiveness with an additional quite long string'
6+
- title: 'Jobs, Growth, Investment and Competitiveness with an additional quite long string'
77
content: 'Lorem fistrum eiusmod cillum elit papaar officia aliquip dolore velit. Pellentesque dolor sapien, mollis fringilla ultricies sed, lacinia vel nibh. Nulla auctor arcu risus, nec facilisis odio aliquet sed.'
8-
-
9-
title: 'Energy Union'
8+
- title: 'Energy Union'
109
content: 'Advice on living, working or travelling in the EU, on visas and immigration for non-EU citizens, European culture. Plus some extra text to make it a little bit longer.'
11-
props:
1210
bare_layout: false
1311
open_item: 1

0 commit comments

Comments
 (0)