Skip to content

Commit

Permalink
Merge pull request #1455 from bring/black-link
Browse files Browse the repository at this point in the history
solid link
  • Loading branch information
hellehi authored Mar 4, 2021
2 parents c4c9097 + e00bf10 commit 8229285
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/shared/_config/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@

--hw-color-white: #fff;
--hw-color-black: #000;
--hw-color-black-hover: #1E1E1E;

--hw-color-alert-green: #7BC144;
--hw-color-alert-yellow: #fdbb2f;
Expand Down
4 changes: 4 additions & 0 deletions src/shared/components/link/Link.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Modifiers:
[Big] .hw-link--big
[Inverted] .hw-link--inverted
[No underline] .hw-link--no-underline
[Black] .hw-link--solid
```


Expand Down Expand Up @@ -52,6 +53,9 @@ Modifiers:
<a href="#" class="hw-link hw-link--no-underline">This is a link without an underline until hovered</a>
```

```html|span-6,plain,light
<a href="#" class="hw-link hw-link--solid">This is a solid link for use on yellow backgrounds</a>
```



Expand Down
10 changes: 10 additions & 0 deletions src/shared/components/link/link.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,14 @@
border-bottom: none;
}
}

&--solid {
color: var(--hw-color-black);
border-color: var(--hw-color-black);
&:hover,
&:active {
color: var(--hw-color-black-hover);
border-color: var(--hw-color-black-hover);
}
}
}

0 comments on commit 8229285

Please sign in to comment.