Skip to content
New issue

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

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

Already on GitHub? # to your account

bug(spinner): Spinner not rotating around the center when inside a mat-button #30230

Closed
1 task
UrzaUrza opened this issue Dec 23, 2024 · 1 comment
Closed
1 task
Labels
needs triage This issue needs to be triaged by the team

Comments

@UrzaUrza
Copy link

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

When i put a mat-spinner inside a mat-icon-button, if the diameter of the spinner is not 24px then the spinner is not rotating around the center of the circle.

Reproduction

StackBlitz link: https://stackblitz.com/edit/wl81aqhc?file=src%2Fexample%2Fbutton-overview-example.html
Steps to reproduce:

  1. Run
  2. Watch

Expected Behavior

The spinner rotate around the center of the circle.

Actual Behavior

The spinner does not rotate around the center of the circle.

Environment

  • Angular: 19.0.3
  • CDK/Material: 19.0.2
  • Browser(s): Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows
@UrzaUrza UrzaUrza added the needs triage This issue needs to be triaged by the team label Dec 23, 2024
@amysorto
Copy link
Contributor

amysorto commented Jan 7, 2025

I don't see us supporting this use case since its so specific unforunately so I will close this issue.

Although I would advise that these two components are quite different and I haven't really seen a spinner inside a button before, there might be a different component that better suits your use case.

@amysorto amysorto closed this as completed Jan 7, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
needs triage This issue needs to be triaged by the team
Projects
None yet
Development

No branches or pull requests

2 participants