Skip to content

fix(git-history): improve ref label contrast in dark theme #4

Description

@Defmon3

Problem

Git History renders ref labels such as HEAD -> custom and origin/custom in a saturated red/magenta color that has poor contrast against the dark background. The labels are difficult to read even though they carry important branch and remote-ref state.

Current behavior

  • Ref labels use a low-contrast red/magenta foreground on the dark commit-details surface.
  • The affected labels include the checked-out branch marker and remote-tracking refs.
  • Nearby neutral text is substantially easier to read.

Expected behavior

Ref labels remain visually distinguishable from ordinary metadata while being comfortably readable in the dark theme.

Screenshot

Low-contrast Git History ref labels

Acceptance criteria

  • HEAD -> <branch> and remote-ref labels meet WCAG AA contrast for normal text against their actual dark-theme background.
  • The labels remain visually distinct from the commit hash, author, and date.
  • Hovered, selected, and unselected commit-detail states remain readable.
  • The light theme is unchanged unless the same token is proven deficient there.
  • A focused UI/style regression test covers the selected dark-theme state.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions