Skip to content

Fix header backgrounds in light and dark themes - #7165

Merged
cdavalos7 merged 2 commits into
tensorflow:masterfrom
cdavalos7:fix/header-toolbar-background
Oct 20, 2026
Merged

cdavalos7 merged 2 commits into
tensorflow:masterfrom
cdavalos7:fix/header-toolbar-background

Conversation

@cdavalos7

@cdavalos7 cdavalos7 commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Motivation for features / changes

This fixes a regression from the Angular 21 upgrade. Material 21's M2 toolbar stopped reading TensorBoard's app-bar color, so the header turned white with white text in the light theme, and parts of it stayed orange in the dark theme.

Technical description of changes

  • Header: header_component.scss overrides the toolbar tokens with $tb-app-bar-color in the light theme and the dark palette's card color in the dark theme.
  • Inactive plugin select: plugin_selector_component.scss makes it transparent.
  • Tab pagination chevrons: they read --mat-toolbar-container-background-color.
  • Polymer hparams toolbar: tensorboard-color.ts defines --tb-toolbar-background-color for the dark theme.

Screenshots of UI changes (or N/A)

Errors fixed:

Screenshot 2026-10-14 at 4 11 10 p m Screenshot 2026-10-14 at 4 11 19 p m Screenshot 2026-10-14 at 4 11 01 p m

… 21's M2 toolbar ignores TensorBoard's `app-bar` color
@cdavalos7
cdavalos7 marked this pull request as ready for review October 15, 2026 01:04
@cdavalos7
cdavalos7 requested a review from arcra October 15, 2026 01:05

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this import still necessary? I think maybe we can remove this (and potentially a dependency in the BUILD file too)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you good catch

@cdavalos7
cdavalos7 merged commit e461670 into tensorflow:master Oct 20, 2026
18 checks passed
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.

2 participants