const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
link: {
textDecoration: 'none',
- color: 'inherit'
+ color: 'inherit',
+ width: '100%',
+ display: 'flex'
},
icon: {
width: '16px',
height: '16px'
},
title: {
- marginLeft: theme.spacing.unit * 2,
paddingBottom: theme.spacing.unit * 0.5,
+ paddingLeft: theme.spacing.unit * 2,
+ paddingTop: theme.spacing.unit * 0.5,
outline: 'none',
},
linkTitle: {
marginLeft: theme.spacing.unit
- }
+ },
});
const links = [
icon={<HelpIcon />}
id="help-menu"
title="Help">
- <Typography variant="body1" className={classes.title}>Help</Typography>
+ <li className={classes.title}>
+ <Typography variant="body1">Help</Typography>
+ </li>
{
links.map(link =>
- <a key={link.title} href={link.link} target="_blank" className={classes.link}>
- <MenuItem>
- <ImportContactsIcon className={classes.icon} />
- <Typography variant="body1" className={classes.linkTitle}>{link.title}</Typography>
- </MenuItem>
- </a>)
+ <MenuItem key={link.title}>
+ <a href={link.link} target="_blank" className={classes.link}>
+ <ImportContactsIcon className={classes.icon} />
+ <Typography variant="body1" className={classes.linkTitle}>{link.title}</Typography>
+ </a>
+ </MenuItem>
+ )
}
</DropdownMenu>
);