File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
static/app/components/tabs Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff 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 ) ) }
Original file line number Diff line number Diff 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
6367export 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 ) }
You can’t perform that action at this time.
0 commit comments