Skip to content

Commit 7bead4f

Browse files
committed
fix: adds isAccordion attribute to FAQ block
Adds the `isAccordion` attribute to the FAQ block's schema. This attribute controls whether the FAQ items are displayed in an accordion style, allowing users to expand and collapse individual questions. The default value is set to `true`.
1 parent 83cd805 commit 7bead4f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/faq/block.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
"html": false,
1111
"innerBlocks": true
1212
},
13+
"attributes": {
14+
"isAccordion": {
15+
"type": "boolean",
16+
"default": true
17+
}
18+
},
1319
"textdomain": "blockparty-faq",
1420
"editorScript": "file:./index.js",
1521
"viewScript": "file:./script.js",

0 commit comments

Comments
 (0)