generated from nl-design-system/example
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(link): changed styling and icon after design feedback (#626)
closes #474 and #448 Changes are based on feedback: #474 (comment) --------- Co-authored-by: Ruben Smit <[email protected]>
- Loading branch information
Showing
8 changed files
with
156 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* @license EUPL-1.2 | ||
* Copyright (c) 2021 Community for NL Design System | ||
*/ | ||
|
||
@mixin rhc-link--any-link { | ||
--utrecht-icon-inset-block-start: var(--utrecht-link-icon-inset-block-start, inherit); | ||
|
||
column-gap: var(--utrecht-link-column-gap, inherit); | ||
display: inline-flex; | ||
} | ||
|
||
@mixin rhc-link--icon { | ||
min-block-size: var(--utrecht-link-icon-size, inherit); | ||
min-inline-size: var(--utrecht-link-icon-size, inherit); | ||
} | ||
|
||
@mixin rhc-link--visited { | ||
--utrecht-link-text-decoration-color: var(--utrecht-link-visited-color, inherit); | ||
|
||
color: var(--utrecht-link-visited-color, inherit); | ||
} | ||
|
||
@mixin rhc-link--visited-icon { | ||
color: var(--utrecht-link-visited-color, inherit); | ||
} | ||
|
||
@mixin rhc-link--active { | ||
--utrecht-link-text-decoration: var(--utrecht-link-active-text-decoration, inherit); | ||
} |
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 |
---|---|---|
@@ -1,10 +1,18 @@ | ||
export const ExternalLinkIcon = () => ( | ||
<svg fill="none" height="18" viewBox="0 0 18 18" width="18" xmlns="http://www.w3.org/2000/svg"> | ||
<path | ||
clip-rule="evenodd" | ||
d="M12 2C11.4477 2 11 1.55228 11 1C11 0.447715 11.4477 0 12 0H17C17.5523 0 18 0.447715 18 1V6C18 6.55228 17.5523 7 17 7C16.4477 7 16 6.55228 16 6V3.41421L7.70711 11.7071C7.31658 12.0976 6.68342 12.0976 6.29289 11.7071C5.90237 11.3166 5.90237 10.6834 6.29289 10.2929L14.5858 2H12ZM0 6C0 4.34315 1.34315 3 3 3H8C8.55228 3 9 3.44772 9 4C9 4.55228 8.55228 5 8 5H3C2.44772 5 2 5.44772 2 6V15C2 15.5523 2.44772 16 3 16H12C12.5523 16 13 15.5523 13 15V10C13 9.44771 13.4477 9 14 9C14.5523 9 15 9.44771 15 10V15C15 16.6569 13.6569 18 12 18H3C1.34315 18 0 16.6569 0 15V6Z" | ||
fill="#01689B" | ||
fill-rule="evenodd" | ||
/> | ||
<svg | ||
fill="none" | ||
height="24" | ||
stroke="currentColor" | ||
stroke-linecap="round" | ||
stroke-linejoin="round" | ||
stroke-width="2" | ||
viewBox="0 0 24 24" | ||
width="24" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path d="M0 0h24v24H0z" fill="none" stroke="none" /> | ||
<path d="M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6" /> | ||
<path d="M11 13l9 -9" /> | ||
<path d="M15 4h5v5" /> | ||
</svg> | ||
); |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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