-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: guidelines 3.0 link style (#89)
* feat: 🎸 Link according to DBUX-3 spec BREAKING CHANGE: 🧨 Brace yourselves - all your links are belong to us 🔗 * fix: 🐛 Fix issues from review * fix: 🐛 Fix more issues from review * refactor: remove custom icons for links * refactor: updated colors and tonality * refactor: add globals * refactor: default style with arrows * docs(migrationGuide): update migrationGuide * fix: revert adding icons helper * Update migrationGuide.adoc * refactor: use color placeholder from latest base * Update link.scss * refactor: removed unused styles * Update link.scss Co-authored-by: Anna Schoderer <[email protected]> Co-authored-by: Maximilian Franzke <[email protected]>
- Loading branch information
1 parent
7c1d5cb
commit e826142
Showing
10 changed files
with
122 additions
and
55 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
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 was deleted.
Oops, something went wrong.
Empty file.
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,2 +1,40 @@ | ||
@import "link.variables"; | ||
@use "@db-ui/base/build/scss/icon/icons.helpers" as *; | ||
|
||
@import "../link"; | ||
|
||
// Define the available icons | ||
.elm-link { | ||
&[rel] { | ||
--icon-font-family: var(--db-base-icon-font-family); | ||
--icon-font-size: var(--db-base-icon-font-size); | ||
} | ||
|
||
&[rel="configuration"] { | ||
@include icon(glyph(settings), 24, "outline", $partial: $partial); | ||
} | ||
|
||
&[rel="messages"] { | ||
@include icon(glyph(chat), 24, "outline", $partial: $partial); | ||
} | ||
|
||
&[rel="account"] { | ||
@include icon(glyph(account), 24, "outline", $partial: $partial); | ||
} | ||
|
||
&[rel="configuration"], | ||
&[rel="messages"], | ||
&[rel="account"] { | ||
&::before { | ||
// preventing an underlined icon on click | ||
display: inline-block; | ||
} | ||
} | ||
|
||
&[data-size="small"] { | ||
&[rel] { | ||
@include icon-meta(20); | ||
// TODO: remove when icons are availabe in the correct size | ||
font-size: 16px; | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
<p class="db-ui-functional"> | ||
{{> elements-link href='#' value='Internal link functional' data-content='internal' }} | ||
{{> elements-link href='#' value='External link functional' data-content='external' }} | ||
{{> elements-link href='#' value='Internal link functional small' data-content='internal' size="small" }} | ||
{{> elements-link href='#' value='External link functional small' data-content='external' size="small" }} | ||
</p> | ||
|
||
|
||
<p class="db-ui-regular"> | ||
{{> elements-link href='#' value='Internal link regular (Default)' data-content='internal' }} | ||
{{> elements-link href='#' value='External link regular (Default)' data-content='external' }} | ||
{{> elements-link href='#' value='Internal link regular (Default) small' data-content='internal' size="small" }} | ||
{{> elements-link href='#' value='External link regular (Default) small' data-content='external' size="small" }} | ||
</p> | ||
|
||
|
||
|
||
<p class="db-ui-expressive"> | ||
{{> elements-link href='#' value='Internal link expressive' data-content='internal' }} | ||
{{> elements-link href='#' value='External link expressive' data-content='external' }} | ||
{{> elements-link href='#' value='Internal link expressive small' data-content='internal' size="small" }} | ||
{{> elements-link href='#' value='External link expressive small' data-content='external' size="small" }} | ||
</p> |
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