Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bug(badge): default font size for matBadgeSize="small" is 0px #31666

Closed
Labels
needs triageThis issue needs to be triaged by the team
@wartab

Description

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

I tried to go back in versions and even in 18, it seems broken, no idea how I never noticed this earlier.

Reproduction

https://stackblitz.com/edit/components-issue-starter-m4rkf4vx?file=src%2Fmain.ts,src%2Findex.html

The StackBlitz links in the issue tracker are only for 18, but it also doesn't work for 20.

Expected Behavior

Show the badge text

Actual Behavior

No badge text (because of size 0).

Environment

 _ _ ____ _ ___
 / \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
 / しろさんかく \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
 / ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
 /_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
 |___/
Angular CLI: 20.1.3
Node: 22.13.1
Package Manager: npm 9.6.4
OS: win32 x64
Angular: 20.1.3
... animations, build, cdk, cli, common, compiler, compiler-cli
... core, forms, language-service, localize, material
... platform-browser, platform-browser-dynamic, router
Package Version
------------------------------------------------------
@angular-devkit/architect 0.2001.3
@angular-devkit/core 20.1.3
@angular-devkit/schematics 20.1.3
@schematics/angular 20.1.3
rxjs 7.8.2
typescript 5.8.3
zone.js 0.15.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageThis issue needs to be triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /