-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into refactor/update-suite-selector-to-handle-rig…
…ht-click
- Loading branch information
Showing
5 changed files
with
49 additions
and
12 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,15 @@ | ||
.componentTag__container--beta { | ||
position: static; | ||
} | ||
|
||
.componentTag__badge--beta { | ||
font-size: 12px; | ||
font-weight: 500; | ||
margin-top: -13px; | ||
padding: 0 6px; | ||
background-color: #faad14; | ||
} | ||
|
||
.componentTag__badge--beta > .ant-ribbon-corner { | ||
color: #faad14; | ||
} |
This file was deleted.
Oops, something went wrong.
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,28 @@ | ||
import React from 'react' | ||
import { addons } from '@storybook/manager-api' | ||
import customTheme from './theme' | ||
import { Badge } from 'antd' | ||
|
||
import './manager.css' | ||
|
||
addons.setConfig({ | ||
theme: customTheme, | ||
sidebar: { | ||
renderLabel: item => { | ||
if (item.tags?.includes('deprecated')) { | ||
return ( | ||
<div title={item.name}> | ||
<span>{item.name}</span> | ||
<Badge.Ribbon | ||
rootClassName="componentTag__container--beta" | ||
className="componentTag__badge--beta" | ||
text="Deprecated" | ||
/> | ||
</div> | ||
) | ||
} | ||
|
||
return item.name | ||
}, | ||
}, | ||
}) |
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 |
---|---|---|
|
@@ -52,8 +52,6 @@ const preview: Preview = { | |
}, | ||
}, | ||
}, | ||
|
||
tags: ['autodocs'], | ||
} | ||
|
||
export default preview |
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