You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TitleBar: the title ignores headerText and headerNotActiveText #580
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