I am trying to use Material Ui tooltip inside Appbar, but the tooltip is not aligned to the icon or to the container
the same when using the simple tooltip example from docs :
<Tooltip title="Delete" arrow>
<IconButton>
<NotificationsOutlinedIcon color="primary" />
</IconButton>
</Tooltip>
the issue is happening only when using inside an appbar and also because the Text Typography that uses flex-grow, when I remove the text is working, how can I fix that?
my code:
<div className={classes.root}>
<AppBar position="static">
<Toolbar>
{logo}
<Typography className={classes.title}>
<ViewDropDownMenu/>
</Typography>
<Tooltip title="tooltip" arrow>
<IconButton aria-label="tooltip">
<DeleteIcon color="primary" />
</IconButton>
</Tooltip>
{/* </div> */}
</Toolbar>
</AppBar>
</div>
style :
const useStyles = makeStyles((theme: Theme) =>
createStyles({
root: {
backgroundColor: theme.palette.background.default
},
appbar: {
justifyContent: 'center',
height: '100%'
},
menuButton: {
marginRight: theme.spacing(2)
},
title: {
flexGrow: 1,
textAlign: 'center',
color: theme.palette.text.primary
},
logo: {
maxWidth: 79
}
})
);
so when I remove the classes.title
