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-08 09:07:11 +00:00 committed by Copybot
parent 43663d6fc9
commit affe266609
2 changed files with 12 additions and 6 deletions

View file

@ -6,11 +6,16 @@ function MenuButton({ onClick }) {
const { t } = useTranslation()
return (
// eslint-disable-next-line jsx-a11y/anchor-is-valid
<a role="button" className="btn btn-full-height" href="#" onClick={onClick}>
<Icon type="fw" modifier="bars" classes={{ icon: 'editor-menu-icon' }} />
<p className="toolbar-label">{t('menu')}</p>
</a>
<div className="toolbar-item">
<button className="btn btn-full-height" onClick={onClick}>
<Icon
type="bars "
modifier="fw"
classes={{ icon: 'editor-menu-icon' }}
/>
<p className="toolbar-label">{t('menu')}</p>
</button>
</div>
)
}

View file

@ -20,7 +20,8 @@
}
}
.toolbar-right {
.toolbar-right,
.toolbar-left {
button {
background: transparent;
box-shadow: none;