Closed neildeighan closed 8 months ago
It looks like we forgot to update the template for our custom themes. You should change the $demo-theme
to this:
$demo-theme: mat.define-light-theme((
color: (
primary: $demo-primary,
accent: $demo-accent,
warn: $demo-warn,
),
typography: mat.define-typography-config(),
density: 0,
));
I've sent a fix for our own code.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
Is this a regression?
The previous version in which this bug was not present was
Unknown
Description
Implementing a simple mat-icon with a matBadge="5", the number 5 is not shown in badge, it works ok when using one of the pre-defined themes i.e. Deep Purple & Amber, but when I select custom theme on adding angular/material, without changing the default colors, the number is not shown.
Reproduction
StackBlitz link: https://stackblitz.com/edit/stackblitz-starters-adgwky?file=src%2Fmain.ts Steps to reproduce:
Expected Behavior
number is shown in badge when applied to mat-icon
Actual Behavior
badge is "blank"
Environment