mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
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:
parent
43663d6fc9
commit
affe266609
2 changed files with 12 additions and 6 deletions
|
@ -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' }} />
|
||||
<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>
|
||||
</a>
|
||||
</button>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,8 @@
|
|||
}
|
||||
}
|
||||
|
||||
.toolbar-right {
|
||||
.toolbar-right,
|
||||
.toolbar-left {
|
||||
button {
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
|
|
Loading…
Reference in a new issue