Skip to content

Commit 52c1102

Browse files
author
MichaelSun48
committed
Rename variant options from vanilla & draggable to flat & filled, respectively
1 parent d78cd4b commit 52c1102

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

static/app/components/tabs/index.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ export default storyBook(Tabs, story => {
197197
</p>
198198
<SizingWindow>
199199
<Tabs>
200-
<TabList variant={'draggable'}>
200+
<TabList variant={'filled'}>
201201
{TABS.map(tab => (
202202
<TabList.Item key={tab.key}>{tab.label}</TabList.Item>
203203
))}

static/app/components/tabs/tab.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,13 @@ export interface BaseTabProps {
5555
* by <DraggableTab> to pass in props used for drag-and-drop functionality.
5656
*/
5757
additionalProps?: React.HTMLAttributes<HTMLElement>;
58+
/**
59+
* This controls the border style of the tab. Only active when
60+
* `variant=filled` since other variants do not have a border
61+
*/
5862
borderStyle?: 'solid' | 'dashed';
5963
to?: string;
60-
variant?: 'vanilla' | 'draggable';
64+
variant?: 'flat' | 'filled';
6165
}
6266

6367
export const BaseTab = forwardRef(
@@ -70,7 +74,7 @@ export const BaseTab = forwardRef(
7074
hidden,
7175
isSelected,
7276
additionalProps,
73-
variant = 'vanilla',
77+
variant = 'flat',
7478
borderStyle = 'solid',
7579
} = props;
7680

@@ -92,7 +96,7 @@ export const BaseTab = forwardRef(
9296
),
9397
[to, orientation]
9498
);
95-
if (variant === 'draggable') {
99+
if (variant === 'filled') {
96100
return (
97101
<DraggableTabWrap
98102
{...mergeProps(tabProps, additionalProps)}

0 commit comments

Comments
 (0)