angular / angular/components

bug(material/card): The mat-progress-bar overflows when placed in the mat-card-footer

Open
#28,785 1 comment 0 reactions 0 assignees View on GitHub
area: material/card area: material/progress-bar P3
Dominant language
TypeScript
Stars
25k
Forks
6.8k
Avg merge
1d 8h
Merged PRs (30d)
91

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

16

### Description

In the documentation example "Card with footer" (loading bar) the loader is out of bounds.

https://material.angular.io/components/card/examples#card-footer

### Reproduction

StackBlitz link: https://stackblitz.com/edit/pm8knt-rswhv3?file=src%2Fexample%2Fcard-footer-example.html

### Expected Behavior

Content should not extend beyond the borders of the card

### Actual Behavior

when using elements such as picture, progress-bar the corners of the borders are different from the inserted content.

### Environment

- Angular: 17.3.1
- CDK/Material: 17.3.1
- Browser(s): Chrome 123.0.6312.59 (Official Build) (arm64)
- Operating System (e.g. Windows, macOS, Ubuntu): macOS Sonoma 14.4

Contributor guide

Open the contributing guide

Research direction

Start with the Card with footer documentation example and its linked StackBlitz reproduction at src/example/card-footer-example.html. Compare the mat-progress-bar and other footer content against the card boundaries in Angular Material 17.3.1; done means the loading bar and inserted content stay within the card borders with consistent corners.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.