@madgex/design-system 13.6.0 → 13.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@madgex/design-system",
3
3
  "author": "Madgex",
4
4
  "license": "UNLICENSED",
5
- "version": "13.6.0",
5
+ "version": "13.6.1",
6
6
  "main": "dist/js/index.js",
7
7
  "exports": {
8
8
  ".": "./dist/js/index.js",
@@ -29,8 +29,9 @@ i18n: {
29
29
  removeButtonText: 'Remove file',
30
30
  selectedFileText: 'Selected file:', // hidden text when a file has been selected
31
31
  fallbackSelectedFileText: 'Use `[value]` or upload a different file',
32
- cropImageButtonText: 'Crop image'
33
-
32
+ cropperModalTitle: 'Edit image',
33
+ cropImageButtonText: 'Crop image',
34
+ cropperModalCloseButton: 'Close editor'
34
35
  }
35
36
  ```
36
37
 
@@ -112,9 +112,16 @@
112
112
 
113
113
  {# dont render cropper elements if opted out, mds-file-upload will handle missing elements #}
114
114
  {% if not params.noImageCropper %}
115
- {% call MdsModal({ id: params.id+'-cropper-modal', siteContainerId: params.siteContainerId }) -%}
116
- <h2>{{params.i18n.cropperModalTitle | default('Edit image')}}</h2>
117
- {{params.cropper}}
115
+ {% call MdsModal({
116
+ id: params.id+'-cropper-modal',
117
+ siteContainerId: params.siteContainerId,
118
+ ariaLabelledby: params.id+'-cropper-modal-title',
119
+ i18n: {
120
+ closeText: params.i18n.cropperModalCloseButton | default('Close')
121
+ }
122
+ })
123
+ -%}
124
+ <h2 id="{{params.id}}-cropper-modal-title">{{params.i18n.cropperModalTitle | default('Edit image')}}</h2>
118
125
  {{MdsImageCropper(params.cropper)}}
119
126
  {%- endcall %}
120
127
  {% endif %}