Skip to content

Commit 385a832

Browse files
Merge pull request mui#4982 from owencm/Bottom-Nav-Fix-2
[BottomNavigation] Fix SVG icon positioning
2 parents 1c6837c + 1bc8f52 commit 385a832

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/BottomNavigation/BottomNavigationItem.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,13 @@ function getStyles(props, context) {
2929
bottomNavigation.unselectedFontSize,
3030
transition: 'color 0.3s, font-size 0.3s',
3131
color: color,
32-
margin: 'auto',
3332
},
3433
icon: {
3534
display: 'block',
35+
/**
36+
* Used to ensure SVG icons are centered
37+
*/
38+
width: '100%',
3639
},
3740
iconColor: color,
3841
};

0 commit comments

Comments
 (0)