-
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(styles, docs): update badges (#2860)
- Loading branch information
1 parent
407751e
commit 4bcc9f7
Showing
11 changed files
with
157 additions
and
303 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,6 @@ | ||
--- | ||
'@swisspost/design-system-styles': major | ||
'@swisspost/design-system-documentation': patch | ||
--- | ||
|
||
Restricted the badge to showing counts only and updated the styles accordingly. |
File renamed without changes.
10 changes: 10 additions & 0 deletions
10
packages/documentation/src/shared/decorators/dark-background.ts
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,10 @@ | ||
import { StoryContext, StoryFn } from '@storybook/web-components'; | ||
import { html } from 'lit'; | ||
|
||
export function coloredBackground(story: StoryFn, context: StoryContext, color: string) { | ||
return html` | ||
<div class="bg-${color}" style="margin: -40px -30px; padding: 40px 30px;"> | ||
${story(context.args, context)} | ||
</div> | ||
`; | ||
} |
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
Oops, something went wrong.