Skip to content

Commit

Permalink
Fix: _globals schema nesting (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-allen-89 committed Mar 21, 2023
1 parent ab7c991 commit 1b9e2f7
Showing 1 changed file with 47 additions and 40 deletions.
87 changes: 47 additions & 40 deletions schema/course.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,49 +12,56 @@
"type": "object",
"default": {},
"properties": {
"_hotgraphic": {
"_components": {
"type": "object",
"default": {},
"properties": {
"ariaRegion": {
"type": "string",
"title": "ARIA region",
"default": "Image with selectable areas. Select each button to show more information.",
"_adapt": {
"translatable": true
}
},
"item": {
"type": "string",
"title": "Item",
"default": "Item {{{itemNumber}}} of {{{totalItems}}}",
"_adapt": {
"translatable": true
}
},
"previous": {
"type": "string",
"title": "Previous",
"default": "{{#if title}}Back to {{{title}}} (item {{itemNumber}} of {{totalItems}}){{else}}{{_globals._accessibility._ariaLabels.previous}}{{/if}}",
"_adapt": {
"translatable": true
}
},
"next": {
"type": "string",
"title": "Next",
"default": "{{#if title}}Forward to {{{title}}} (item {{itemNumber}} of {{totalItems}}){{else}}{{_globals._accessibility._ariaLabels.next}}{{/if}}",
"_adapt": {
"translatable": true
}
},
"popupPagination": {
"type": "string",
"title": "Popup pagination",
"description": "This is the aria label for each item. Use {{itemNumber}} and {{totalItems}} in your text to tell the user which item they are viewing and how many items there are in total",
"default": "{{itemNumber}} / {{totalItems}}",
"_adapt": {
"translatable": true
"_hotgraphic": {
"type": "object",
"title": "Hotgraphic",
"default": {},
"properties": {
"ariaRegion": {
"type": "string",
"title": "ARIA region",
"default": "Image with selectable areas. Select each button to show more information.",
"_adapt": {
"translatable": true
}
},
"item": {
"type": "string",
"title": "Item",
"default": "Item {{{itemNumber}}} of {{{totalItems}}}",
"_adapt": {
"translatable": true
}
},
"previous": {
"type": "string",
"title": "Previous",
"default": "{{#if title}}Back to {{{title}}} (item {{itemNumber}} of {{totalItems}}){{else}}{{_globals._accessibility._ariaLabels.previous}}{{/if}}",
"_adapt": {
"translatable": true
}
},
"next": {
"type": "string",
"title": "Next",
"default": "{{#if title}}Forward to {{{title}}} (item {{itemNumber}} of {{totalItems}}){{else}}{{_globals._accessibility._ariaLabels.next}}{{/if}}",
"_adapt": {
"translatable": true
}
},
"popupPagination": {
"type": "string",
"title": "Popup pagination",
"description": "This is the aria label for each item. Use {{itemNumber}} and {{totalItems}} in your text to tell the user which item they are viewing and how many items there are in total",
"default": "{{itemNumber}} / {{totalItems}}",
"_adapt": {
"translatable": true
}
}
}
}
}
Expand Down

0 comments on commit 1b9e2f7

Please sign in to comment.