Skip to content

Commit

Permalink
fix(material/badge): ensure overflow visible (#24602)
Browse files Browse the repository at this point in the history
(cherry picked from commit 0f15d19)
  • Loading branch information
andrewseguin committed Mar 16, 2022
1 parent 097ec0d commit 33d07df
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/material/badge/_badge-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ $_badge-structure-emitted: false !default;
position: relative;
}

// The badge should make sure its host is overflow visible so that the badge content
// can be rendered outside of the element. Some components such as <mat-icon> explicitly
// style `overflow: hidden` so this requires extra specificity so that it does not
// depend on style load order.
.mat-badge.mat-badge {
overflow: visible;
}

.mat-badge-hidden {
.mat-badge-content {
display: none;
Expand Down

0 comments on commit 33d07df

Please sign in to comment.