Skip to content

TitleBar: the title ignores headerText and headerNotActiveText #580

Closed

Description

@ggdaltoso

Where: library (components/TitleBar/TitleBar.css.ts)
Stories: Contract › Custom Theme, and any theme with a light headerBackground

titleBarBackground sets color to headerText (or headerNotActiveText when inactive) on the bar, but the title inside it sets its own color: 'transparent' and draws the letters with textShadow: '0.5px 0px white, 1.5px 0px white'. The title's own color wins over the inherited one, so neither token ever reaches it: the title is always white, in every theme and in both states.

A theme that pairs a light headerBackground with a dark headerText still gets a white title. In Contract › Custom Theme, white on tomato is about 3:1. axe doesn't catch it, since it only checks color, which is transparent.

Using currentColor instead of white in the textShadow would keep the bold Windows 95 look and follow the bar's headerText / headerNotActiveText.

Activity

  1. added
    bug
    on Oct 15, 2026
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

    @react95/corebug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions