Skip to content

fix(editor): timeline clip delete icon contrast in light theme - #480

Merged
EtienneLescot merged 1 commit into
mainfrom
claude/timeline-clip-delete-contrast
Aug 22, 2026
Merged

fix(editor): timeline clip delete icon contrast in light theme#480
EtienneLescot merged 1 commit into
mainfrom
claude/timeline-clip-delete-contrast

Conversation

@EtienneLescot

@EtienneLescot EtienneLescot commented Aug 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #470/#474 — same class of bug, spotted directly against a real clip in the timeline.

  • .tlClipDelete (the trash icon on a timeline clip's thumbnail) sits on the same fixed dark frosted-glass chip as .tlClipLabel right next to it — both deliberately theme-independent since they overlay an arbitrary video thumbnail. But its icon used color: var(--muted) (the app's own theme-dependent secondary-text token) instead of the "light text on a dark overlay" token its sibling already uses correctly (.tlClipName is a flat #fff for the same reason).
  • In light theme, --muted is a medium slate gray close enough in tone to the chip's blended backdrop to read as nearly invisible.
  • Switched to --overlay-text, the token design-tokens.css defines specifically for this pairing (already used for scene/PiP overlay captions elsewhere).

Testing

  • npx tsc --noEmit -p . — clean
  • Not independently visually verified in a live browser session (reaching this state needs a loaded project with an actual video clip in the timeline, not available in this session's browser-only preview); the fix mirrors the exact working pattern of the adjacent .tlClipName rule one-for-one.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Improved the visibility of clip deletion controls across themes, particularly on dark frosted-glass overlays.

…treatment as its label

.tlClipDelete sits on the same fixed dark frosted-glass chip as
.tlClipLabel right next to it (both `color-mix(in srgb, #080a0d 55%,
transparent)`, deliberately theme-independent since they overlay an
arbitrary video thumbnail) — but its icon used `color: var(--muted)`,
the app's own theme-dependent secondary-text token, instead of the
"light text on a dark overlay" token the sibling chip's own text
already uses (`.tlClipName` is a flat `#fff` for the same reason).
In light theme `--muted` is a medium slate gray, close enough in tone
to the chip's blended backdrop to read as nearly invisible — reported
directly against a real clip's delete button in the timeline.

Switched to `--overlay-text`, the token design-tokens.css defines for
exactly this pairing (already used for scene/PiP overlay captions).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 8cdc5ecd-a17b-42a3-a682-23d693ed58cb

📥 Commits

Reviewing files that changed from the base of the PR and between a7536fd and 85ca310.

📒 Files selected for processing (1)
  • src/components/ai-edition/v4/EditorShellV4.module.css

📝 Walkthrough

Walkthrough

The .tlClipDelete icon now uses the --overlay-text color token while retaining its existing dark overlay styling.

Changes

Overlay contrast

Layer / File(s) Summary
Clip delete icon color
src/components/ai-edition/v4/EditorShellV4.module.css
.tlClipDelete now uses var(--overlay-text) instead of var(--muted).

Estimated code review effort: 1 (Trivial) | ~2 minutes

Suggested reviewers: sepion02

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/timeline-clip-delete-contrast

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@EtienneLescot
EtienneLescot merged commit 4a333c5 into main Aug 22, 2026
16 of 17 checks passed
@EtienneLescot
EtienneLescot deleted the claude/timeline-clip-delete-contrast branch August 22, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant