Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

feat(button-link): add button link and button link with icon #137 #160

Merged
merged 6 commits into from
Mar 31, 2016

Conversation

rbarilani
Copy link
Contributor

PLEASE RUN: npm update fabricator-assemble

@dami-gg @gabrielhl @xonic @mrac WDYT?

!!! #159 must be merged before this one !!!

@rbarilani rbarilani added this to the 1.0.0-beta milestone Mar 23, 2016
@rbarilani rbarilani force-pushed the topic/button-link-137 branch from c461d0c to fa270e1 Compare March 23, 2016 08:44
@rbarilani
Copy link
Contributor Author

@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;
Copy link
Contributor

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.

@rbarilani rbarilani force-pushed the topic/button-link-137 branch from e23aa33 to 82dbc13 Compare March 23, 2016 09:33
@rbarilani rbarilani changed the title feat(button-flat): add flat button and flat button with icon #137 feat(button-link): add button link and button link with icon #137 Mar 23, 2016
@gabrielhl gabrielhl self-assigned this Mar 23, 2016
@gabrielhl
Copy link
Contributor

@rbarilani will do that now

@rbarilani
Copy link
Contributor Author

reminder for me: remove dc-btn--link-large, etc. (use dc-btn--large).

@rbarilani
Copy link
Contributor Author

@gabrielhl @xonic at this point I would like to remove also dc-btn--link-[success,destroy,disabled] and just use dc-link--[success,destroy,disabled]. WDYT?

@gabrielhl
Copy link
Contributor

Since it's a button atom, shouldn't we be using dc-btn--destroy, dc-btn--disabled etc?

@xonic
Copy link
Contributor

xonic commented Mar 24, 2016

+1 for btn modifiers

On 24.03.2016, at 11:21, Gabriel Lovato [email protected] wrote:

Since it's a button atom, shouldn't we be using dc-btn--destroy, dc-btn--disabled etc?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

@rbarilani
Copy link
Contributor Author

@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 .dc-btn--link.dc-btn--destroy I can't use them. (and that's against our extreme approach)

@xonic
Copy link
Contributor

xonic commented Mar 24, 2016

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?

@rbarilani
Copy link
Contributor Author

The thing is that we our current approach users of our library can work just with mixins, like so:

.3rdparty-link-success {
 @include dc-btn;
 @include dc-btn--link;
 @include dc-btn--link--success;
}

// or

.3rdparty-link {
  @include dc-btn;
  @include dc-btn--link;
}
.3rdparty-link.disabled {
   @include dc-btn--link--disabled;
}

This is possible because we don't rely directly on selectors.
But ok we can relax that concept now, if you want.

@gabrielhl
Copy link
Contributor

Would something like this maybe work? Defining the state as a mixin and then combining the selector?

@mixin dc-btn--link--destroy--no-touch; {
    &:hover {
        background: transparent;
        color: $dc-red50;
    }
}

and then when definining the selectors

.no-touch .dc-btn-link.dc-btn--destroy {
        @include dc-btn--link--destroy--no-touch;
}

@rbarilani
Copy link
Contributor Author

Would something like this maybe work? Defining the state as a mixin and then combining the selector?

@mixin dc-btn--link--destroy--no-touch; {
&:hover {
background: transparent;
color: $dc-red50;
}
}
and then when definining the selectors

.no-touch .dc-btn-link.dc-btn--destroy {
@include dc-btn--link--destroy--no-touch;
}

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?

@xonic
Copy link
Contributor

xonic commented Mar 29, 2016

@rbarilani Ok, I've discussed the issue with @gabrielhl and we think the following makes sense:

  • Remove .dc-link--success --> we're not ever gonna need this kind of modifier
  • Make the combination of .dc-btn--link.dc-btn--destroy work. How? In idle state it should look like .dc-btn--link and on :hover it should look like the ordinary .dc-btn--destroy

@rbarilani rbarilani force-pushed the topic/button-link-137 branch from 8e16154 to 9565809 Compare March 30, 2016 07:37
…remove success link #137

	BREAKING CHANGE: dc-link--success was removed.
@rbarilani rbarilani force-pushed the topic/button-link-137 branch from 9565809 to 7f63c69 Compare March 30, 2016 08:14
@rbarilani
Copy link
Contributor Author

@gabrielhl @xonic ok maybe now is done. @gabrielhl can you update the .dc-btn--link note?

rbarilani and others added 2 commits March 31, 2016 10:13
* develop:
  feat(icons): add contact font icon
  refactor(icons): Match svg-icons to font-icons. Move svg-icons to subfolder. Close #128
  feat(lists): closes #163. add simple and interactive scrollable lists
  chore(gulp): refactor build stuff, close #166
  chore(.gitignore): update .gitignore
@rbarilani rbarilani merged commit 44f6c1c into develop Mar 31, 2016
@rbarilani rbarilani deleted the topic/button-link-137 branch March 31, 2016 15:58
@rbarilani rbarilani mentioned this pull request Mar 31, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants