Skip to content

Commit bc3d387

Browse files
authored
MDC Migration: Apply tb theme to new mat components (#6562)
## Motivation for features / changes We are starting to use the new MDC components. This applies our theme to those components so they are the correct colors.
1 parent 9b94eeb commit bc3d387

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tensorboard/webapp/theme/_tb_theme.template.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,14 @@ $tb-dark-theme: map_merge(
262262

263263
// Apply themed style for the global stylesheet (styles.scss).
264264
@mixin tb-global-themed-styles() {
265+
// TODO(JamesHollyer): remove legacy component themes once all components
266+
// are migrated.
265267
@include mat.core();
266268
@include mat.all-legacy-component-typographies();
269+
@include mat.all-component-typographies();
267270
// Include all theme-styles for the components based on the current theme.
268271
@include mat.all-legacy-component-themes($tb-theme);
272+
@include mat.all-component-themes($tb-theme);
269273

270274
body {
271275
// Prevents ngx-color-picker from creating a scrollbar and misposition.
@@ -299,6 +303,9 @@ $tb-dark-theme: map_merge(
299303
}
300304
}
301305

306+
// TODO(JamesHollyer): remove legacy component themes once all components
307+
// are migrated.
308+
@include mat.all-component-themes($tb-dark-theme);
302309
@include mat.all-legacy-component-themes($tb-dark-theme);
303310
}
304311
}

0 commit comments

Comments
 (0)