This repository has been archived by the owner on Dec 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #160 from zalando/topic/button-link-137
feat(button-link): add button link and button link with icon #137
- Loading branch information
Showing
11 changed files
with
102 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
docs/demo/materials/02-atoms/buttons/02-button--modifiers.html
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
name: button modifiers | ||
title: button modifiers | ||
notes: | | ||
Use the size modifiers `dc-btn--large` and `dc-btn--small` to make buttons larger or smaller. | ||
|
||
--- | ||
<button class="dc-btn dc-btn--large">Large Button</button> | ||
<button class="dc-btn">Normal Button</button> | ||
<button class="dc-btn dc-btn--small">Small Button</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
name: button modifiers | ||
title: button modifiers | ||
notes: | | ||
Buttons can have modifier classes applied to them. Different modifier classes have different meanings, use them wisely. | ||
|
||
`dc-btn--primary`: Triggers the primary action of the page it is placed on. Place only one primary button on each page/dialog. | ||
|
||
`dc-btn--destroy`: Triggers a destructive action which can't be undone and might involve loss of data. | ||
|
||
`dc-btn--disabled`: When a button is disabled. Buttons using this modifier should not be clickable. | ||
|
||
`dc-btn--link`: Has the appearance of a link but the dimensions and modifiers of a button. | ||
--- | ||
<button class="dc-btn dc-btn--primary">Primary Button</button> | ||
<button class="dc-btn dc-btn--destroy">Destroy Button</button> | ||
<button class="dc-btn dc-btn--disabled">Disabled Button</button> | ||
<br> | ||
<button class="dc-btn dc-btn--link">Button Link</button> | ||
<button class="dc-btn dc-btn--link dc-btn--destroy">Button Link - Destroy</button> | ||
<button class="dc-btn dc-btn--link dc-btn--disabled">Button Link - Disabled</button> | ||
<br> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
<a href class="dc-link" data-tooltip="Dont't forget the tooltip">This link isn't pointing anywhere</a> | ||
<a href class="dc-link">This link isn't pointing anywhere</a> | ||
|
||
<br> | ||
|
||
<a href class="dc-link dc-link--success" data-tooltip="Dont't forget the tooltip">This link isn't pointing anywhere with success</a> | ||
<a href class="dc-link dc-link--destroy">This link isn't pointing anywhere and destroy</a> | ||
|
||
<br> | ||
|
||
<a href class="dc-link dc-link--destroy" data-tooltip="Dont't forget the tooltip">This link isn't pointing anywhere and destroy</a> | ||
|
||
<br> | ||
|
||
<a href class="dc-link dc-link--disabled" data-tooltip="Dont't forget the tooltip">This link isn't pointing anywhere and is disabled</a> | ||
<a href class="dc-link dc-link--disabled">This link isn't pointing anywhere and is disabled</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
docs/demo/materials/03-molecules/01-button-icon/02-button-link-icon.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
name: button link icon | ||
title: button link icon | ||
--- | ||
<button class="dc-btn dc-btn--link dc-btn--link-destroy dc-btn--large"> | ||
<span>Back to previous</span> <i class="dc-icon dc-icon--arrow-left dc-icon--btn dc-icon--btn-large dc-icon--btn--left"></i> | ||
</button> | ||
|
||
<button class="dc-btn dc-btn--link dc-btn--large"> | ||
<span>Go To next</span> <i class="dc-icon dc-icon--arrow-right dc-icon--btn dc-icon--btn-large dc-icon--btn--right"></i> | ||
</button> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters