-
Notifications
You must be signed in to change notification settings - Fork 17
feat(button-link): add button link and button link with icon #137 #160
Conversation
c461d0c
to
fa270e1
Compare
@gabrielhl Can you add some notes for the flat button and flat button icon and maybe find a better way to present this component in the demo section? |
@include dc-link; | ||
|
||
background: transparent; | ||
border: 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.
Would switch this for border-color:transparent. Border: 0 makes the flat button height 2px smaller than the other buttons.
e23aa33
to
82dbc13
Compare
@rbarilani will do that now |
reminder for me: remove dc-btn--link-large, etc. (use dc-btn--large). |
@gabrielhl @xonic at this point I would like to remove also |
Since it's a button atom, shouldn't we be using dc-btn--destroy, dc-btn--disabled etc? |
+1 for btn modifiers
|
@xonic @gabrielhl Well I can't use btn modifiers because they add background and border and white color. So unless I do a specific selector like |
From a logical perspective, to me, the link button belongs to the group of buttons. I don't think that btn--link should be combined with other mods than --disabled. To be sure though, and give more flexibility, I'd override the background. What do you think guys? |
The thing is that we our current approach users of our library can work just with mixins, like so:
This is possible because we don't rely directly on selectors. |
Would something like this maybe work? Defining the state as a mixin and then combining the selector?
and then when definining the selectors
|
Yep is what I'm doing to have both approaches available. It can work and I like it BUT I have only one doubt: btn--link can have also a success modifier unlike dc-btn... IHMO we should add a dc-btn--success modifier valid for dc-btn and dc-btn--link.... WDYT? |
@rbarilani Ok, I've discussed the issue with @gabrielhl and we think the following makes sense:
|
chore(fabricator): downgrade to 1.1.10 due to an issue, see fbrctr/fabricator-assemble#40 #137
8e16154
to
9565809
Compare
…remove success link #137 BREAKING CHANGE: dc-link--success was removed.
9565809
to
7f63c69
Compare
@gabrielhl @xonic ok maybe now is done. @gabrielhl can you update the .dc-btn--link note? |
PLEASE RUN:
npm update fabricator-assemble
@dami-gg @gabrielhl @xonic @mrac WDYT?
!!! #159 must be merged before this one !!!