Commit defa0fa
committed
[DevTools] Use Visually Lighter Skeletons (facebook#34185)
The skeletons right now are too jarring because they're visually heavier
than the content that comes in later. This makes them draw attention to
themselves as flashing things.
A good skeleton and loading indicator should ideally start as invisible
as possible and then gradually become more visible the longer time
passes so that if it loads quickly then it was never much visible at
all.
Even at its max it should never be heavier weight than the final content
so that it visually reverts into lesser. Another rule of thumb is that
it should be as close as possible to the final content in size but if
it's unknown it should always be smaller than the final content so that
the content grows into its slot rather than the slot contracting.
This makes the skeleton fade from invisible into the dimmest color just
as a subtle hint that something is still loading.
I also added a missing skeleton since the stack traces in rendered by
can now suspend while source mapping.
The other tweak I did is use disabled buttons in all the cases where we
load the ability to enable a button. This is more subtle and if you
hover over you can see why it's still disabled. Rather than flashing the
button each time you change element.
DiffTrain build for [14c50e3](facebook@14c50e3)1 parent f7ce1b5 commit defa0fa
File tree
38 files changed
+6562
-6626
lines changed- compiled/facebook-www
38 files changed
+6562
-6626
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
| 159 | + | |
| 160 | + | |
170 | 161 | | |
171 | 162 | | |
172 | 163 | | |
173 | 164 | | |
174 | 165 | | |
175 | 166 | | |
176 | 167 | | |
177 | | - | |
| 168 | + | |
178 | 169 | | |
179 | 170 | | |
180 | 171 | | |
| |||
213 | 204 | | |
214 | 205 | | |
215 | 206 | | |
216 | | - | |
217 | | - | |
218 | 207 | | |
219 | 208 | | |
220 | 209 | | |
| |||
275 | 264 | | |
276 | 265 | | |
277 | 266 | | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | 267 | | |
| 268 | + | |
282 | 269 | | |
283 | 270 | | |
284 | 271 | | |
| |||
337 | 324 | | |
338 | 325 | | |
339 | 326 | | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
| 327 | + | |
348 | 328 | | |
349 | 329 | | |
350 | 330 | | |
351 | 331 | | |
352 | 332 | | |
353 | 333 | | |
354 | 334 | | |
355 | | - | |
356 | | - | |
357 | 335 | | |
358 | 336 | | |
359 | 337 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
| 159 | + | |
| 160 | + | |
170 | 161 | | |
171 | 162 | | |
172 | 163 | | |
173 | 164 | | |
174 | 165 | | |
175 | 166 | | |
176 | 167 | | |
177 | | - | |
| 168 | + | |
178 | 169 | | |
179 | 170 | | |
180 | 171 | | |
| |||
213 | 204 | | |
214 | 205 | | |
215 | 206 | | |
216 | | - | |
217 | | - | |
218 | 207 | | |
219 | 208 | | |
220 | 209 | | |
| |||
275 | 264 | | |
276 | 265 | | |
277 | 266 | | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | 267 | | |
| 268 | + | |
282 | 269 | | |
283 | 270 | | |
284 | 271 | | |
| |||
337 | 324 | | |
338 | 325 | | |
339 | 326 | | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
| 327 | + | |
348 | 328 | | |
349 | 329 | | |
350 | 330 | | |
351 | 331 | | |
352 | 332 | | |
353 | 333 | | |
354 | 334 | | |
355 | | - | |
356 | | - | |
357 | 335 | | |
358 | 336 | | |
359 | 337 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
| 206 | + | |
| 207 | + | |
217 | 208 | | |
218 | 209 | | |
219 | 210 | | |
220 | 211 | | |
221 | 212 | | |
222 | 213 | | |
223 | 214 | | |
224 | | - | |
| 215 | + | |
225 | 216 | | |
226 | 217 | | |
227 | 218 | | |
| |||
260 | 251 | | |
261 | 252 | | |
262 | 253 | | |
263 | | - | |
264 | | - | |
265 | 254 | | |
266 | 255 | | |
267 | 256 | | |
| |||
322 | 311 | | |
323 | 312 | | |
324 | 313 | | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | 314 | | |
| 315 | + | |
329 | 316 | | |
330 | 317 | | |
331 | 318 | | |
| |||
334 | 321 | | |
335 | 322 | | |
336 | 323 | | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | 324 | | |
| 325 | + | |
341 | 326 | | |
342 | 327 | | |
343 | 328 | | |
| |||
542 | 527 | | |
543 | 528 | | |
544 | 529 | | |
545 | | - | |
546 | | - | |
547 | | - | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
548 | 533 | | |
549 | | - | |
550 | | - | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
551 | 543 | | |
552 | 544 | | |
553 | 545 | | |
554 | 546 | | |
555 | 547 | | |
556 | 548 | | |
557 | 549 | | |
558 | | - | |
| 550 | + | |
559 | 551 | | |
560 | 552 | | |
561 | 553 | | |
| |||
1109 | 1101 | | |
1110 | 1102 | | |
1111 | 1103 | | |
1112 | | - | |
1113 | | - | |
1114 | | - | |
1115 | 1104 | | |
| 1105 | + | |
1116 | 1106 | | |
1117 | 1107 | | |
1118 | 1108 | | |
| |||
1185 | 1175 | | |
1186 | 1176 | | |
1187 | 1177 | | |
1188 | | - | |
1189 | | - | |
1190 | | - | |
1191 | 1178 | | |
| 1179 | + | |
1192 | 1180 | | |
1193 | 1181 | | |
1194 | 1182 | | |
| |||
1243 | 1231 | | |
1244 | 1232 | | |
1245 | 1233 | | |
1246 | | - | |
| 1234 | + | |
1247 | 1235 | | |
1248 | 1236 | | |
1249 | 1237 | | |
1250 | 1238 | | |
1251 | 1239 | | |
1252 | 1240 | | |
1253 | 1241 | | |
1254 | | - | |
1255 | | - | |
1256 | 1242 | | |
1257 | 1243 | | |
1258 | 1244 | | |
1259 | 1245 | | |
1260 | 1246 | | |
1261 | 1247 | | |
1262 | | - | |
1263 | | - | |
1264 | | - | |
1265 | | - | |
1266 | | - | |
1267 | | - | |
1268 | | - | |
1269 | | - | |
| 1248 | + | |
1270 | 1249 | | |
1271 | 1250 | | |
1272 | 1251 | | |
1273 | 1252 | | |
1274 | 1253 | | |
1275 | 1254 | | |
1276 | 1255 | | |
1277 | | - | |
1278 | | - | |
1279 | 1256 | | |
1280 | 1257 | | |
1281 | 1258 | | |
1282 | 1259 | | |
1283 | 1260 | | |
1284 | 1261 | | |
1285 | | - | |
| 1262 | + | |
1286 | 1263 | | |
1287 | 1264 | | |
1288 | 1265 | | |
1289 | 1266 | | |
1290 | 1267 | | |
1291 | 1268 | | |
1292 | 1269 | | |
1293 | | - | |
1294 | | - | |
1295 | 1270 | | |
1296 | 1271 | | |
1297 | 1272 | | |
| |||
1434 | 1409 | | |
1435 | 1410 | | |
1436 | 1411 | | |
1437 | | - | |
| 1412 | + | |
1438 | 1413 | | |
1439 | 1414 | | |
1440 | 1415 | | |
| |||
0 commit comments