Merge pull request #5995 from overleaf/jk-navbar-menu-button

[web] Use real button for Menu button in navbar

GitOrigin-RevId: c1b85c366046774aa638801647cb61eba0de7098
This commit is contained in:
June Kelly
2021-12-09 09:02:24 +00:00
committed by Copybot
parent 772252c45d
commit 7f7d968a6b
2 changed files with 12 additions and 6 deletions
@@ -6,11 +6,16 @@ function MenuButton({ onClick }) {
const { t } = useTranslation() const { t } = useTranslation()
return ( return (
// eslint-disable-next-line jsx-a11y/anchor-is-valid <div className="toolbar-item">
<a role="button" className="btn btn-full-height" href="#" onClick={onClick}> <button className="btn btn-full-height" onClick={onClick}>
<Icon type="fw" modifier="bars" classes={{ icon: 'editor-menu-icon' }} /> <Icon
<p className="toolbar-label">{t('menu')}</p> type="bars "
</a> modifier="fw"
classes={{ icon: 'editor-menu-icon' }}
/>
<p className="toolbar-label">{t('menu')}</p>
</button>
</div>
) )
} }
@@ -20,7 +20,8 @@
} }
} }
.toolbar-right { .toolbar-right,
.toolbar-left {
button { button {
background: transparent; background: transparent;
box-shadow: none; box-shadow: none;