Commit 1969779
authored
improvement(files): fill the active find match instead of ringing it (#7198)
The Cmd/Ctrl+F active match was drawn as a 1.5px ring in --highlight-match-text.
An outline around a run of text traces its line box, so on a heading it read as a
stray dark rectangle rather than as emphasis, and a match wrapping across two
lines drew two disjoint boxes.
The active hit is now a solid --brand-secondary fill with a fixed dark ink, so it
stays in the same family as the inactive tint and wraps cleanly. The ink is fixed
rather than tokenized because the fill is: --brand-secondary is the same blue in
both themes, so a theme-flipping text token would go white on light blue in dark
mode. Same pairing the note card's active search mark already uses.1 parent b01b41f commit 1969779
1 file changed
Lines changed: 11 additions & 3 deletions
File tree
- apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
590 | | - | |
591 | | - | |
| 590 | + | |
592 | 591 | | |
593 | 592 | | |
594 | 593 | | |
595 | 594 | | |
596 | 595 | | |
597 | 596 | | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
598 | 605 | | |
599 | | - | |
| 606 | + | |
| 607 | + | |
600 | 608 | | |
0 commit comments