-
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
refactor(buttons): refactor buttons’ markup and styling - INNO-307 #141
Conversation
# Conflicts: # framework/components/ecl-button-groups/_button-groups.scss # framework/components/ecl-buttons/_buttons.scss
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.
There are first impressions.
Style | ||
See Default button style | ||
|
||
# Guidance |
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.
A bit painful to see that we already know it's unfinished work and someone will have to update urgently at worst moment
@@ -69,6 +67,10 @@ a.breadcrumb__link { | |||
// the breadcrumb segment width. | |||
width: 11px; | |||
color: #fff; | |||
|
|||
&::before { |
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.
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.
Will see when working on breadcrumbs 👼
Buttons | ||
/** | ||
* Buttons component | ||
* @define button |
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.
Isn't this @define ecl-button
?
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.
Nope, the prefix should not be added in the definition :)
{% endif %} | ||
|
||
{% if icon is defined %} | ||
{% set extraClass = extraClass ~ ' ecl-button--' ~ icon %} |
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.
Adding a comment on this one will be appreciated, it currently seems a bit magical and takes time to understand.
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 definitely needs more documentation
@@ -1,354 +1,161 @@ | |||
/* | |||
Buttons |
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.
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.
W3C: "pointer" The cursor is a pointer that indicates a link.
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.
in my face :D
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 have no other remarks
Closes #86.
Basically, I've imported @emeryro's work and rewritten the template (one template to rule them all). I still need to work on the "variants" (fractal-ly speaking), to provide more concrete examples.
TODO: