diff --git a/src/ec/packages/ec-component-file/__snapshots__/file.test.js.snap b/src/ec/packages/ec-component-file/__snapshots__/file.test.js.snap index f7ce3244e..b092b0429 100644 --- a/src/ec/packages/ec-component-file/__snapshots__/file.test.js.snap +++ b/src/ec/packages/ec-component-file/__snapshots__/file.test.js.snap @@ -111,7 +111,7 @@ exports[`EC - File With translation renders correctly 1`] = ` {{ _item.meta }} {% include '../ec-component-link/link.html.twig' with _download|merge({ - link: _download.link|default({})|merge({ + link: _item.download.link|default(_download.link|default({}))|merge({ type: 'standalone', icon_position: 'after' }), + icon: _item.download.icon|default(_download.icon|default({}))|merge({ + type: 'ui', + name: 'download', + size: 'fluid' + }), extra_classes: 'ecl-file__translation-download', extra_attributes: [ { name: 'download' }, diff --git a/src/ec/packages/ec-component-file/file.story.js b/src/ec/packages/ec-component-file/file.story.js index aad55bf95..1c262184e 100644 --- a/src/ec/packages/ec-component-file/file.story.js +++ b/src/ec/packages/ec-component-file/file.story.js @@ -14,6 +14,16 @@ import file from './file.html.twig'; dataWithTranslation.icon.path = defaultSprite; dataWithTranslation.download.icon.path = defaultSprite; dataWithTranslation.translation.toggle.icon.path = defaultSprite; +dataWithTranslation.translation.items[0].download.icon = { + path: defaultSprite, +}; +dataWithTranslation.translation.items[1].download.icon = { + path: defaultSprite, +}; +dataWithTranslation.translation.items[2].download.icon = { + path: defaultSprite, +}; + dataWithoutTranslation.icon.path = defaultSprite; dataWithoutTranslation.download.icon.path = defaultSprite;