From 659a80d94c84289694dbd0bf95463b6209c291d4 Mon Sep 17 00:00:00 2001 From: Matt Date: Wed, 27 Feb 2019 08:32:20 +0100 Subject: [PATCH] Update EC Site Header files --- .../__snapshots__/site-header.test.js.snap | 4 ++-- .../ec-component-site-header/site-header.html.twig | 3 ++- .../ec-component-site-header/site-header.story.js | 12 ++++++++++++ .../ec-component-site-header/site-header.test.js | 2 ++ 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/ec/packages/ec-component-site-header/__snapshots__/site-header.test.js.snap b/src/ec/packages/ec-component-site-header/__snapshots__/site-header.test.js.snap index 63199f0de..1802f7c71 100644 --- a/src/ec/packages/ec-component-site-header/__snapshots__/site-header.test.js.snap +++ b/src/ec/packages/ec-component-site-header/__snapshots__/site-header.test.js.snap @@ -45,7 +45,7 @@ exports[`EC - Site Header default - renders correctly 1`] = ` Search @@ -103,7 +103,7 @@ exports[`EC - Site Header translated - renders correctly 1`] = ` Recherche diff --git a/src/ec/packages/ec-component-site-header/site-header.html.twig b/src/ec/packages/ec-component-site-header/site-header.html.twig index 550f75734..3ef387bad 100644 --- a/src/ec/packages/ec-component-site-header/site-header.html.twig +++ b/src/ec/packages/ec-component-site-header/site-header.html.twig @@ -45,7 +45,8 @@ }, label: 'Search', extra_classes: 'ecl-search-form__button' - } + }, + extra_classes: 'ecl-site-header__search' } %} diff --git a/src/ec/packages/ec-component-site-header/site-header.story.js b/src/ec/packages/ec-component-site-header/site-header.story.js index b64156992..ed26525df 100644 --- a/src/ec/packages/ec-component-site-header/site-header.story.js +++ b/src/ec/packages/ec-component-site-header/site-header.story.js @@ -36,6 +36,12 @@ storiesOf('Components/Site Header', module) search_form: { button: { label: 'Search', + icon: { + type: 'general', + name: 'search', + path: defaultSprite, + size: 'xs', + }, }, }, }), @@ -65,6 +71,12 @@ storiesOf('Components/Site Header', module) search_form: { button: { label: 'Recherche', + icon: { + type: 'general', + name: 'search', + path: defaultSprite, + size: 'xs', + }, }, }, }), diff --git a/src/ec/packages/ec-component-site-header/site-header.test.js b/src/ec/packages/ec-component-site-header/site-header.test.js index c3dfafbdb..f3432ebcb 100644 --- a/src/ec/packages/ec-component-site-header/site-header.test.js +++ b/src/ec/packages/ec-component-site-header/site-header.test.js @@ -32,6 +32,7 @@ describe('EC - Site Header', () => { type: 'general', name: 'search', path: defaultIconPath, + size: 'xs', }, }, }, @@ -71,6 +72,7 @@ describe('EC - Site Header', () => { type: 'general', name: 'search', path: defaultIconPath, + size: 'xs', }, }, },