File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
packages/graphql-playground/src/components/Playground Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,9 @@ export default class Tab extends React.PureComponent<Props, State> {
68
68
.tab:hover {
69
69
@p: .bgDarkBlue;
70
70
}
71
+ .tab:hover :global(.close) {
72
+ opacity: 1;
73
+ }
71
74
.light.tab:hover {
72
75
background-color: #eeeff0;
73
76
}
@@ -120,12 +123,19 @@ export default class Tab extends React.PureComponent<Props, State> {
120
123
}
121
124
122
125
.close {
123
- @p: .ml10, .o50, . relative;
126
+ @p: .ml10, .relative;
124
127
top: 1px;
125
128
height: 13px;
126
129
width: 13px;
130
+ opacity: 0;
131
+
127
132
&.active {
128
133
@p: .o100;
134
+ opacity: 1;
135
+ }
136
+
137
+ &.hasCircle {
138
+ opacity: 1;
129
139
}
130
140
}
131
141
@@ -196,7 +206,11 @@ export default class Tab extends React.PureComponent<Props, State> {
196
206
'New Tab' }
197
207
</ div >
198
208
< div
199
- className = { `close ${ index === selectedSessionIndex && 'active' } ` }
209
+ className = { `close${ index === selectedSessionIndex ? ' active' : '' } ${
210
+ session . isFile && session . hasChanged && ! this . state . overCross
211
+ ? ' hasCircle'
212
+ : ''
213
+ } `}
200
214
onClick = { this . handleCloseSession }
201
215
onMouseEnter = { this . handleMouseOverCross }
202
216
onMouseLeave = { this . handleMouseOutCross }
You can’t perform that action at this time.
0 commit comments