Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(eu-header): apply new specs - INNO-1203 #811

Merged
merged 16 commits into from
Sep 12, 2018
Merged

Conversation

emeryro
Copy link
Contributor

@emeryro emeryro commented Sep 12, 2018

PR description

Apply specifications of eu header
Also contains language selector

Note that language selector is just a link for now.
Overlay will be added once language list has been done (INNO-1186)

@emeryro emeryro added this to the 2.0.0 milestone Sep 12, 2018
@emeryro emeryro self-assigned this Sep 12, 2018
@HAL-Patch-INNO
Copy link
Contributor

HAL-Patch-INNO commented Sep 12, 2018

Deploy preview for europa-component-library ready!

Built with commit e7a1f91

https://deploy-preview-811--europa-component-library.netlify.com

@emeryro emeryro removed their assignment Sep 12, 2018
@emeryro emeryro requested a review from a team September 12, 2018 08:48
@yhuard yhuard self-assigned this Sep 12, 2018

<SearchForm
className="ecl-site-header__search"
buttonLabel={searchForm.buttonLabel}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not {...searchForm}?

className="ecl-site-header__logo ecl-link ecl-link--standalone"
href={logo.href}
>
<Logo title={logo.title} alt={logo.alt} language={logo.language} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not <Logo {...logo} />?

});

return (
<div className={classNames} {...props}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

role="banner" is reported as an error by a11y, but indeed it should be header and not div
image

</a>

<div className="ecl-site-header__selector">
<a
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not use <Link ... />?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because Link do not allow anything else from simple text for now

@yhuard yhuard removed their assignment Sep 12, 2018
@emeryro emeryro self-assigned this Sep 12, 2018
@emeryro emeryro removed their assignment Sep 12, 2018
@yhuard yhuard assigned yhuard and unassigned degliwe Sep 12, 2018
yhuard
yhuard previously requested changes Sep 12, 2018
@@ -25,8 +25,8 @@ const SearchForm = ({ textInputId, buttonLabel, className, ...props }) => {
};

return (
<form {...props} className={classNames}>
<TextInput {...searchTextInput} />
<form {...props} className={classNames} role="search">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you update the EC version as well? :)

@yhuard yhuard removed their assignment Sep 12, 2018
@degliwe degliwe merged commit 3c4515c into next-v2 Sep 12, 2018
@degliwe degliwe deleted the feat/eu-header-INNO-1203 branch September 12, 2018 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants