-
Notifications
You must be signed in to change notification settings - Fork 35
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(social-icons): upgrade component - INNO-693 #282
Conversation
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.
Few things to change or to explain ;)
"license": "EUPL-1.1" | ||
"license": "EUPL-1.1", | ||
"dependencies": { | ||
"@ec-europa/ecl-typography-lists": "^0.5.0" |
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 base
dependency
} | ||
} | ||
|
||
.ecl-icon-social { |
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.
I would have used flexboxes:
.ecl-icon-social {
display: flex;
align-items: center;
margin: 0;
}
.ecl-icon-social::before {
content: '';
display: block;
height: 2rem;
margin-right: 1rem;
width: 2rem;
}
And that's mostly it
} | ||
} | ||
|
||
.ecl-icon-social--smaller { |
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.
I don't understand the nesting here. It's not very BEM-compliant :/
|
||
{# If there is a list, make a list #} | ||
{% if list is defined and list is iterable %} | ||
<ul class="{{ listExtraClasses ?: 'ecl-list' }}"> |
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.
Not sure about that. I thought the component was just about adding a social icon, not a whole list of links ^^'
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.
I'd gladly remove, was an idea for making it simple to have a list with 1 include, rather than an include per item. I'll remove :)
Couldn't run the tests to update the refs:
Although |
Hi @kalinchernev, you need to upgrade your Node.js version (see README for instructions with nvm). |
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.
Almost there!
{% if link is defined %} | ||
<a | ||
href="{{ link.target }}" | ||
class="ecl-link ecl-icon-social {{ modifier }} {{ link.extraClasses }}" |
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.
extra_attributes
is missing (there could be some)
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.
Added as well, though the link component is not really ready to use these at the moment.
"license": "EUPL-1.1" | ||
"license": "EUPL-1.1", | ||
"dependencies": { | ||
"@ec-europa/ecl-base": "^0.6.0" |
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 dependency to ecl-links
:)
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.
Added :)
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.
Good enough for now ;)
PR description
@ec-europa/ecl-typography-lists
as a dependency, not the base, as that's what I need - is it wrong?QA Checklist
In order to ensure a safe and quick review, please check that your PR follow those guidelines:
package.json
is up-to-date and@ec-europa/ecl-base
is part of the dependencies@define mycomponent
in the SCSS filemargin: 0;
on the CSS component