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(headers): rename and update doc --INNO-662 #234

Merged
merged 4 commits into from
Jul 4, 2017

Conversation

degliwe
Copy link
Contributor

@degliwe degliwe commented Jul 3, 2017

rename headers, update doc, remove unused headers

@kalinchernev kalinchernev self-assigned this Jul 3, 2017

## Why and how to use this component
Users need a way to easily identify the branding, to search and change the language if needed.
the page title functions as the top level H1.
Copy link
Contributor

Choose a reason for hiding this comment

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

Please either format as un-ordered list (bullets) as in the docs or start with capital letters on new sentences.
Currently it's like a single paragraph with sentences that does not start with capital letters:

...
Users need a way to easily identify the branding, to search and change the language if needed. the page title functions as the top level H1. it is also used to construct the
...

<div class="ecl-page-header__body">
<!-- Site identification (optional) -->
<div class="ecl-page-header__identity">
Digital single market
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be better if this comes comes from the context.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't plan to change the component originally (the ticket was more about updating the doc and changing the name of variants) but your comment convinced me to refactor it.

<!-- Meta items (optional) -->
<div class="ecl-page-header__meta">
<div class="ecl-meta ecl-meta--header">
<span class="ecl-meta__item ecl-u-f-up">News article</span>
Copy link
Contributor

Choose a reason for hiding this comment

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

Please include dynamically, if possible.

module.exports = {
title: 'Basic',
label: 'Basic',
handle: 'ecl-page-headers--basic',
Copy link
Contributor

Choose a reason for hiding this comment

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

I can't open preview windows on basic and default variants, probably because of the handlers.
https://drive.google.com/file/d/0B8knVVW86wNgV3JfMm0xRlFmQU0/view

Copy link
Contributor

@kalinchernev kalinchernev left a comment

Choose a reason for hiding this comment

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

It covers the scope of the ticket - @degliwe thanks for consolidating the logic in 1 template!

I think it's ok to leave the ecl-page-header--image rule in the css as it's probable that there's a change in mind and this feature comes back later.


{% if meta is defined %}
<div class="ecl-page-header__meta">
<div class="ecl-meta ecl-meta--header">
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can create a follow-up ticket to improve the @ec-europa/ecl-meta to be to use it here as:

      {% include '@ec-europa/ecl-meta' with {
        'modifier': 'ecl-meta--header',
        'meta_item_type_data': meta.type,
        'meta_item_data': '....',
      } %}

However, the component is not ready to have multiple ecl-meta__item and cannot accommodate date-display-single at the moment, which is definitely out of scope.

Copy link
Contributor

Choose a reason for hiding this comment

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

Follow-up ticket INNO-668

@kalinchernev kalinchernev merged commit 6c5ab80 into master Jul 4, 2017
@kalinchernev kalinchernev deleted the feat/header-INNO-662 branch July 4, 2017 08:26
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.

2 participants