-
Notifications
You must be signed in to change notification settings - Fork 5
refactor: guidelines 3.0 link style #89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
74609c1
feat: 🎸 Link according to DBUX-3 spec
dkolba cbdc37b
fix: 🐛 Fix issues from review
dkolba e24100f
fix: 🐛 Fix more issues from review
dkolba a8647f7
refactor: remove custom icons for links
annsch 005c3fe
refactor: updated colors and tonality
annsch c5c5d44
refactor: add globals
annsch ce448e0
refactor: default style with arrows
annsch 9a747ad
docs(migrationGuide): update migrationGuide
annsch 8103d9e
fix: revert adding icons helper
annsch 9d3d15d
Update migrationGuide.adoc
mfranzke 7eb7eba
Merge branch 'dbux-3' into feat-dbswc-323-link
mfranzke c2d7167
Merge branch 'dbux-3' into feat-dbswc-323-link
mfranzke b263efa
Merge branch 'dbux-3' into feat-dbswc-323-link
annsch 3e0135f
refactor: use color placeholder from latest base
annsch 99f933f
Update link.scss
mfranzke 56ca01c
Merge branch 'dbux-3' into feat-dbswc-323-link
mfranzke 6912f57
refactor: removed unused styles
annsch 64f13e7
Merge branch 'feat-dbswc-323-link' of https://github.com/db-ui/core i…
annsch 02605f3
Update link.scss
mfranzke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.