Skip to content

Commit a50db34

Browse files
committed
fix schema enhancer
1 parent 9e3563c commit a50db34

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

src/Block/schema.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const TableOfContentsSchema = ({ data }) => {
1313
...(variation === 'default' ? ['ordered'] : []),
1414
...(variation === 'horizontalMenu' ? ['sticky'] : []),
1515
...(variation === 'accordionMenu' ? ['sticky'] : []),
16+
...(variation === 'accordionMenu' ? ['bulleted_list'] : []),
1617
'levels',
1718
],
1819
},
@@ -45,6 +46,11 @@ const TableOfContentsSchema = ({ data }) => {
4546
title: 'Ordered',
4647
type: 'boolean',
4748
},
49+
bulleted_list: {
50+
title: 'Use bullet list',
51+
type: 'boolean',
52+
description: 'Bullet point for child items',
53+
},
4854
},
4955
required: [],
5056
};

src/Block/variations/index.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,6 @@ const ToCVariations = [
1919
id: 'accordionMenu',
2020
title: 'Accordion Menu',
2121
view: AccordionMenu,
22-
schemaEnhancer: ({ schema }) => {
23-
schema.fieldsets[0].fields.push('bulleted_list');
24-
schema.properties.bulleted_list = {
25-
title: 'Use bullet list',
26-
type: 'boolean',
27-
description: 'Bullet point for child items',
28-
};
29-
return schema;
30-
},
3122
},
3223
{
3324
id: 'eea-side-menu',

src/Block/variations/less/accordion-menu.less

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
}
99

1010
.content.active {
11-
padding: 0 !important;
11+
padding: 0 !important ;
12+
// padding-top: 1px !important;
1213
margin: 0 !important;
1314

1415
.accordion-list-bulleted {

0 commit comments

Comments
 (0)