-
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.
fix(documentation): tabs content in docs
- Loading branch information
Showing
18 changed files
with
196 additions
and
225 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': patch | ||
--- | ||
|
||
Fixed tabs in documentation pages. |
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,19 +1,18 @@ | ||
import { Markdown } from '@storybook/blocks'; | ||
import { PostTabs, PostTabHeader, PostTabPanel } from '@swisspost/design-system-components-react'; | ||
import { CodeOrSourceMdx } from '@/utils/codeOrSourceMdx'; | ||
|
||
<PostTabs className='sb-tabs-lg'> | ||
<PostTabHeader panel="instructions">Instructions</PostTabHeader> | ||
<PostTabPanel name="instructions"> | ||
<post-tabs className='sb-tabs-lg'> | ||
<post-tab-header panel="instructions">Instructions</post-tab-header> | ||
<post-tab-panel name="instructions"> | ||
{/* eslint-disable-next-line no-undef */} | ||
{props.children} | ||
</PostTabPanel> | ||
</post-tab-panel> | ||
|
||
<PostTabHeader panel="changelog">Changelog</PostTabHeader> | ||
<PostTabPanel name="changelog"> | ||
<post-tab-header panel="changelog">Changelog</post-tab-header> | ||
<post-tab-panel name="changelog"> | ||
<Markdown className="sb-markdown-no-h1" options={{ overrides: { code: CodeOrSourceMdx } }}> | ||
{/* eslint-disable-next-line no-undef */} | ||
{props.changelog} | ||
</Markdown> | ||
</PostTabPanel> | ||
</PostTabs> | ||
</post-tab-panel> | ||
</post-tabs> |
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
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
Oops, something went wrong.