-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(links): secondary link class (#63)
- Loading branch information
Leila Adams
authored
Dec 18, 2020
1 parent
1a082dc
commit fad79f0
Showing
7 changed files
with
51 additions
and
4 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
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,7 @@ | ||
a.link-secondary { | ||
color: $link-color-secondary; | ||
|
||
@include hover() { | ||
color: $link-hover-color-secondary; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,3 +46,4 @@ | |
@import "print"; | ||
@import "sprite"; | ||
@import "video-tile"; | ||
@import "links"; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
layout: docs | ||
title: Links | ||
description: Anchor tags | ||
group: components | ||
--- | ||
This component does not exist in bootstrap by default. | ||
|
||
|
||
## Examples | ||
|
||
By default, a href tags inherit the primary theme color. | ||
|
||
{% capture example %} | ||
<a href="#">Default link</a> | ||
{% endcapture %} | ||
{% include example.html content=example %} | ||
|
||
Secondary links help differentiate from the primary call to action. | ||
|
||
{% capture example %} | ||
<a href="#" class="link-secondary">Secondary link</a> | ||
{% endcapture %} | ||
{% include example.html content=example %} | ||
|
||
--- | ||
|
||
**Note:** | ||
We could have overidden `text-secondary` in `Colors` but that would have affected all the components that use `text-secondary`, like `Buttons`. So we created a new var `$link-color-secondary` and a new class `link-secondary`. |
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