mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01: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:
+10
-5
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user