Skip to content

Commit 5ad878b

Browse files
authored
fix(cards): add imageAlt field to card JSON configuration (#21)
1 parent 7fd89fa commit 5ad878b

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

blocks/cards/_cards.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@
4242
"label": "Image",
4343
"multi": false
4444
},
45+
{
46+
"component": "text",
47+
"valueType": "string",
48+
"name": "imageAlt",
49+
"label": "Alt"
50+
},
4551
{
4652
"component": "richtext",
4753
"name": "text",

component-definition.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@
153153
"resourceType": "core/franklin/components/block/v1/block",
154154
"template": {
155155
"name": "Carousel",
156-
"model": "carousel",
157156
"filter": "carousel"
158157
}
159158
}

component-models.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,12 @@
170170
"label": "Image",
171171
"multi": false
172172
},
173+
{
174+
"component": "text",
175+
"valueType": "string",
176+
"name": "imageAlt",
177+
"label": "Alt"
178+
},
173179
{
174180
"component": "richtext",
175181
"name": "text",

0 commit comments

Comments
 (0)