Commit 449bc59
committed
fix(ui): table links read as links
Tables sit on `--table-frame-background` (`--surface-tint`), which
is darker than the page, and nothing here accounted for that. The
link blue measures 4.96:1 on the page but 4.39:1 on the frame, and
its dark counterpart 3.68:1 -- both under AA. They now take a ramp
step either side: 5.66:1 light, 6.76:1 dark.
Links also had no cue but hue. A link and a code span in a cell
were both Menlo 400 with no decoration, so in the Type column
`Attribute[]` and `string` differed only in colour -- WCAG 1.4.1.
Table links carry an underline.
`--table-name-color` is inherited rather than the label pink. The
frame specifies that colour for the first-column names, but the
selector reaches every code span in a cell, none of which are
links; magenta, and on dark an outright #FF4C4C, read as dead
links beside the live ones, at 3.00:1 and 3.71:1. Inheriting also
handles `<code><a>` correctly, since the nested link keeps its own
colour.
Hover moves from the cell to the link. The cell rule washed 30%
black over the whole `td`, dropping the link it advertised to
2.72:1 and putting a pointer over prose that wasn't clickable. The
link's own hover steps one further in each theme's direction, so
it is always the stronger state, and thickens the underline rather
than adding one.1 parent 1973148 commit 449bc59
2 files changed
Lines changed: 61 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
440 | 471 | | |
441 | 472 | | |
442 | 473 | | |
| |||
449 | 480 | | |
450 | 481 | | |
451 | 482 | | |
452 | | - | |
453 | | - | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
454 | 488 | | |
455 | 489 | | |
456 | 490 | | |
| |||
1360 | 1394 | | |
1361 | 1395 | | |
1362 | 1396 | | |
1363 | | - | |
1364 | | - | |
1365 | | - | |
1366 | | - | |
1367 | | - | |
1368 | 1397 | | |
1369 | 1398 | | |
1370 | 1399 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
37 | 44 | | |
38 | 45 | | |
39 | 46 | | |
| |||
343 | 350 | | |
344 | 351 | | |
345 | 352 | | |
346 | | - | |
347 | | - | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
348 | 359 | | |
349 | 360 | | |
350 | 361 | | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
351 | 368 | | |
352 | 369 | | |
353 | | - | |
| 370 | + | |
354 | 371 | | |
355 | 372 | | |
356 | 373 | | |
| |||
435 | 452 | | |
436 | 453 | | |
437 | 454 | | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
438 | 458 | | |
439 | 459 | | |
440 | 460 | | |
| |||
514 | 534 | | |
515 | 535 | | |
516 | 536 | | |
| 537 | + | |
| 538 | + | |
517 | 539 | | |
518 | 540 | | |
519 | 541 | | |
| |||
0 commit comments