Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit ec318e7

Browse files
clshortfusekara
authored andcommitted
fix(card): fix alignment with avatar icons in Safari (#9801)
Safari has an alignment issue with SVG icons when its parent has any padding, causing its content to shift placement * Force SVG elements to inherit height and width properties. Fixes #9147
1 parent da6baac commit ec318e7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/card/card.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ md-card {
3737

3838
md-icon {
3939
padding: 8px;
40+
> svg {
41+
// Safari workaround for any SVG with padded parent
42+
height: inherit;
43+
width: inherit;
44+
}
4045
}
4146

4247
& + md-card-header-text {

0 commit comments

Comments
 (0)