-
Notifications
You must be signed in to change notification settings - Fork 5
Conversation
Before going any further in the PR, I have to ask: why is there a version of EU link here? |
@emeryro Question # 2 - in this component there are elements of EC Link. We could use this component, the problem is only that the EC Link component supports plain text, not all HTML. |
This is my mistake - I made a new branch in the wrong way. Everything fixed in 9db993d. I'll just add the correct |
@emeryro Already everything is ok, you can do a review. |
- "search_form" (associative array) (default: predefined structure): EC Search Form component structure | ||
- "language" (associative array) (default: predefined structure): Language switcher settings. Default settings for English. format: | ||
- "url": (string) (default: ''): URL for switcher | ||
- "label": (string) (default: 'English'): Switcher language label, eg. 'English', 'Français', etc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not enforce default language (politcal reasons...). So instead of using english as default, fields should be empty (in every files)
aria_label: 'Commmission Européenne', | ||
}, | ||
header_image: { | ||
src: 'static/media/logo--fr.a8aaa7ab.svg', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can find the logos in package @ecl/ec-resources-logo
: https://github.com/ec-europa/europa-component-library/tree/v2-dev/src/systems/ec/resources/logo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can find the logos in package
@ecl/ec-resources-logo
: https://github.com/ec-europa/europa-component-library/tree/v2-dev/src/systems/ec/resources/logo
I have already made changes locally but I need help.
Could you tell me how to correctly configure the webpack.config.js
file so that svg files are not compiled to one icon.svg
but separately - so that I can implement them in the Site Header
.
Now, when I build the EC environment, I have one svg file (icon.svg
), the content of which is equal to the last imported svg, eg from such a resource: import headerFrenchLogo from @ecl/ec-resources-logo/logo-fr.svg
.
Thank you for your help.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it will be fixed in my PR on language list, but you can already apply the changes if you want: https://github.com/ec-europa/ecl-twig/pull/27/files#diff-ed535e5276105399f01342171198a43eR19
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed in 7fac7df
@emeryro |
I tried to run tests locally on your branch, and I got the same error as Drone reported (running
|
My versions are: |
}, | ||
search_form: { | ||
button: { | ||
label: 'Search', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add icon information here too (for english and translated). Currently the icon isn't displayed on mobile version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 659a80d
</a> | ||
</div> | ||
</div> | ||
{%- include '../ec-component-search-form/search-form.html.twig' with _search_form -%} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing class ecl-site-header__search
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.