-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Typography): Use text color on typography for Sbanken (#2363)
* feat(Typography): Use text color on typography for Sbanen * Update snapshots
- Loading branch information
1 parent
5016e4b
commit 0f3ad0b
Showing
15 changed files
with
59 additions
and
25 deletions.
There are no files selected for viewing
Binary file modified
BIN
+59 Bytes
(100%)
...age_snapshots__/anchor-for-sbanken-have-to-match-anchor-with-paragraph.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+169 Bytes
(100%)
...icon-usage-for-sbanken-have-to-match-anchor-with-paragraph-legacy-icon.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4.19 KB
(120%)
...ts__/heading-for-sbanken-have-to-match-the-additional-heading-examples.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+5.4 KB
(120%)
...shots__/heading-for-sbanken-have-to-match-the-default-heading-examples.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4.31 KB
(120%)
..._snapshots__/paragraph-for-sbanken-have-to-match-the-paragraph-example.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.92 KB
(120%)
...graph-for-sbanken-have-to-match-the-paragraph-with-additional-elements.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.53 KB
(130%)
...ots__/paragraph-for-sbanken-have-to-match-the-paragraph-with-modifiers.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4.14 KB
(120%)
...ts__/paragraph-for-sbanken-have-to-match-the-paragraph-with-small-text.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+35.8 KB
(120%)
...ots__/typography-for-sbanken-have-to-match-all-the-typography-variants.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions
16
packages/dnb-eufemia/src/elements/typography/style/themes/dnb-typography-theme-sbanken.scss
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,16 @@ | ||
@use '../typography-mixins.scss' as typography; | ||
|
||
// Paragraphs | ||
.dnb-p { | ||
color: var(--sb-color-text); | ||
} | ||
|
||
// Setting the default headings color | ||
@include typography.headingTags() { | ||
color: var(--sb-color-text); | ||
} | ||
|
||
// Headings | ||
@include typography.headingClasses() { | ||
color: var(--sb-color-text); | ||
} |
27 changes: 4 additions & 23 deletions
27
packages/dnb-eufemia/src/elements/typography/style/themes/dnb-typography-theme-ui.scss
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,35 +1,16 @@ | ||
@use '../typography-mixins.scss' as typography; | ||
|
||
// Paragraphs | ||
.dnb-p { | ||
color: var(--theme-color-black-80, currentColor); | ||
} | ||
|
||
// Setting the default headings color | ||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5, | ||
h6 { | ||
@include typography.headingTags() { | ||
color: var(--theme-color-black-80, currentColor); | ||
} | ||
|
||
// Headings | ||
.dnb-lead, | ||
.dnb-h--xx-large, | ||
.dnb-h--x-large, | ||
.dnb-h--large, | ||
.dnb-h--medium, | ||
.dnb-h--basis, | ||
.dnb-h--small, | ||
.dnb-h--x-small, | ||
// make exception on headings which are inside of dnb-core-style | ||
.dnb-core-style .dnb-lead, | ||
.dnb-core-style .dnb-h--xx-large, | ||
.dnb-core-style .dnb-h--x-large, | ||
.dnb-core-style .dnb-h--large, | ||
.dnb-core-style .dnb-h--medium, | ||
.dnb-core-style .dnb-h--basis, | ||
.dnb-core-style .dnb-h--small, | ||
.dnb-core-style .dnb-h--x-small { | ||
@include typography.headingClasses() { | ||
color: var(--theme-color-black-80, currentColor); | ||
} |
33 changes: 33 additions & 0 deletions
33
packages/dnb-eufemia/src/elements/typography/style/typography-mixins.scss
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 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