-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(documentation): adds contrastValues and an example text for colo…
…rs story (#2376) Different than suggested in the ticket I used the actual function that is used in the design system to calculate the contrast. In Terms of presentation I do not have a good idea how it should be done. There is however already a page that shows the proper text for each backround. https://next.design-system.post.ch/?path=/docs/utilities-background--docs Maybe this would also be the more appropriate place to add the contrast information. --------- Co-authored-by: Oliver Schürch <[email protected]> Co-authored-by: Loïc Fürhoff <[email protected]>
- Loading branch information
1 parent
d9e3776
commit 89e3a67
Showing
6 changed files
with
63 additions
and
5 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,5 @@ | ||
--- | ||
'@swisspost/design-system-documentation': minor | ||
--- | ||
|
||
Added contrast ratios agains black & white to color documentation. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,4 +50,10 @@ | |
} | ||
} | ||
} | ||
.black { | ||
background-color: post.$black; | ||
} | ||
.white { | ||
background-color: post.$white; | ||
} | ||
} |
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