@@ -8,56 +8,8 @@ import createPermutations from '../utils/permutations';
88import PermutationsView from '../utils/permutations-view' ;
99import ScreenshotArea from '../utils/screenshot-area' ;
1010
11- // No background, underline
12- const style1 = {
13- tabs : {
14- backgroundColor : {
15- default : 'transparent' ,
16- hover : 'light-dark(rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.15))' ,
17- active : 'transparent' ,
18- disabled : 'transparent' ,
19- } ,
20- borderColor : {
21- default : 'transparent' ,
22- hover : 'transparent' ,
23- active : 'transparent' ,
24- disabled : 'transparent' ,
25- } ,
26- borderWidth : '0px' ,
27- borderRadius : '6px' ,
28- color : {
29- default : 'light-dark(#64748b, #94a3b8)' ,
30- hover : 'light-dark(#1e293b, #e2e8f0)' ,
31- active : 'light-dark(#0f172a, #ffffff)' ,
32- disabled : 'light-dark(#cbd5e1, #475569)' ,
33- } ,
34- fontSize : '14px' ,
35- fontWeight : '500' ,
36- paddingBlock : '12px' ,
37- paddingInline : '20px' ,
38- focusRing : {
39- borderColor : 'light-dark(#3b82f6, #60a5fa)' ,
40- borderRadius : '6px' ,
41- borderWidth : '2px' ,
42- } ,
43- } ,
44- tabUnderline : {
45- color : 'light-dark(#3b82f6, #60a5fa)' ,
46- width : '3px' ,
47- borderRadius : '3px' ,
48- } ,
49- tabSeparator : {
50- color : 'transparent' ,
51- width : '0px' ,
52- } ,
53- headerBorder : {
54- color : 'light-dark(#e2e8f0, #334155)' ,
55- width : '1px' ,
56- } ,
57- } ;
58-
5911// Rounded with background
60- const style2 = {
12+ const style1 = {
6113 tabs : {
6214 backgroundColor : {
6315 default : 'light-dark(#f1f5f9, #1e293b)' ,
@@ -72,7 +24,7 @@ const style2 = {
7224 disabled : 'lightblue' ,
7325 } ,
7426 borderWidth : '2px' ,
75- borderRadius : '20px ' ,
27+ borderRadius : '40px ' ,
7628 color : {
7729 default : 'light-dark(#475569, #94a3b8)' ,
7830 hover : 'light-dark(#1e3a8a, #dbeafe)' ,
@@ -105,7 +57,7 @@ const style2 = {
10557} ;
10658
10759// Border colors with background
108- const style3 = {
60+ const style2 = {
10961 tabs : {
11062 backgroundColor : {
11163 default : 'light-dark(#fef3c7, #422006)' ,
@@ -144,7 +96,7 @@ const style3 = {
14496 } ,
14597 tabSeparator : {
14698 color : 'light-dark(#fde68a, #78350f)' ,
147- width : '1px ' ,
99+ width : '2px ' ,
148100 } ,
149101 headerBorder : {
150102 color : 'light-dark(#fde047, #92400e)' ,
@@ -164,7 +116,7 @@ const permutations = createPermutations<TabsProps>([
164116 activeTabId : [ 'first' , 'second' ] ,
165117 variant : [ 'default' , 'container' , 'stacked' ] ,
166118 disableContentPaddings : [ false , true ] ,
167- style : [ style1 , style2 , style3 ] ,
119+ style : [ style1 , style2 ] ,
168120 } ,
169121] ) ;
170122
@@ -173,15 +125,6 @@ export default function TabsStylePermutations() {
173125 < >
174126 < h1 > Tabs Style Permutations</ h1 >
175127
176- < Tabs
177- style = { style3 }
178- tabs = { [
179- { id : 'first' , label : 'First tab' , content : 'First tab content' } ,
180- { id : 'second' , label : 'Second tab' , content : 'Second tab content' } ,
181- { id : 'third' , label : 'Third tab' , content : 'Third tab content' , disabled : true } ,
182- ] }
183- />
184-
185128 < ScreenshotArea disableAnimations = { true } >
186129 < PermutationsView
187130 permutations = { permutations }
0 commit comments