@@ -64,7 +64,7 @@ module Toggle = {
64
64
let activeClass = if selected === i {
65
65
"font-medium text-gray-90 bg-gray-5 border-t-2 border-l border-r"
66
66
} else {
67
- "font-medium hover:text-gray-60 border-t-2 border-gray-20 bg-gray-10 hover:cursor-pointer"
67
+ "font-medium hover:text-gray-60 border-t-2 border-l border-r bg-gray-10 hover:cursor-pointer"
68
68
}
69
69
70
70
let onClick = evt => {
@@ -80,15 +80,15 @@ module Toggle = {
80
80
| _ => ""
81
81
}
82
82
83
- let style = if selected === i {
84
- ReactDOM . Style . make (~ borderColor = "#f4646a #EDF0F2" , ()) -> Some
83
+ let borderColor = if selected === i {
84
+ "#f4646a #EDF0F2"
85
85
} else {
86
- None
86
+ "#CDCDD6 #EDF0F2"
87
87
}
88
-
88
+
89
89
<span
90
90
key
91
- ? style
91
+ style = { ReactDOM . Style . make (~ borderColor , ())}
92
92
className = {paddingX ++
93
93
(" flex-none px-4 first:ml-6 xs:first:ml-0 inline-block p-1 rounded-tl rounded-tr " ++
94
94
activeClass )}
@@ -105,10 +105,12 @@ module Toggle = {
105
105
})
106
106
-> Belt .Option .getWithDefault (React .null )
107
107
108
- <div className = "relative pt-6 w-full rounded-none text-gray-80" > //text within code-box
108
+ <div className = "relative pt-6 w-full rounded-none text-gray-80" >
109
+ //text within code-box
109
110
<div
110
- className = "absolute flex w-full overflow-auto scrolling-touch font-sans bg-transparent text-14 text-gray-40 " style = {ReactDOM .Style .make (~marginTop = "-30px" , ())}>
111
- <div className = "flex space-x-2" > {React .array (tabElements )} </div >
111
+ className = "absolute flex w-full overflow-auto scrolling-touch font-sans bg-transparent text-14 text-gray-40 "
112
+ style = {ReactDOM .Style .make (~marginTop = "-30px" , ())}>
113
+ <div className = "flex space-x-2" > {React .array (tabElements )} </div >
112
114
<div className = "flex-1 border-b border-gray-10" > {React .string (j ` \\ u00A0` )} </div >
113
115
</div >
114
116
<div
0 commit comments