Skip to content

Commit 0f15d19

Browse files
authored
fix(material/badge): ensure overflow visible (#24602)
1 parent 6982ca7 commit 0f15d19

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/material/badge/_badge-theme.scss

+8
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,14 @@ $_badge-structure-emitted: false !default;
102102
position: relative;
103103
}
104104

105+
// The badge should make sure its host is overflow visible so that the badge content
106+
// can be rendered outside of the element. Some components such as <mat-icon> explicitly
107+
// style `overflow: hidden` so this requires extra specificity so that it does not
108+
// depend on style load order.
109+
.mat-badge.mat-badge {
110+
overflow: visible;
111+
}
112+
105113
.mat-badge-hidden {
106114
.mat-badge-content {
107115
display: none;

0 commit comments

Comments
 (0)