Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MDC Migration: Apply tb theme to new mat components #6562

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tensorboard/webapp/theme/_tb_theme.template.scss
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,14 @@ $tb-dark-theme: map_merge(

// Apply themed style for the global stylesheet (styles.scss).
@mixin tb-global-themed-styles() {
// TODO(JamesHollyer): remove legacy component themes once all components
// are migrated.
@include mat.core();
@include mat.all-legacy-component-typographies();
@include mat.all-component-typographies();
// Include all theme-styles for the components based on the current theme.
@include mat.all-legacy-component-themes($tb-theme);
@include mat.all-component-themes($tb-theme);

body {
// Prevents ngx-color-picker from creating a scrollbar and misposition.
Expand Down Expand Up @@ -299,6 +303,9 @@ $tb-dark-theme: map_merge(
}
}

// TODO(JamesHollyer): remove legacy component themes once all components
// are migrated.
@include mat.all-component-themes($tb-dark-theme);
@include mat.all-legacy-component-themes($tb-dark-theme);
}
}