mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #12776 from overleaf/ae-search-close-tooltip
[cm6] Add tooltip to search panel close button GitOrigin-RevId: ba7f4ca5d672580054cb6214be94497fd5141730
This commit is contained in:
parent
f3205c1d06
commit
c53411ff1d
1 changed files with 10 additions and 8 deletions
|
@ -412,14 +412,16 @@ const CodeMirrorSearchForm: FC = () => {
|
|||
</div>
|
||||
|
||||
<div className="ol-cm-search-form-close">
|
||||
<button
|
||||
className="close"
|
||||
onClick={() => closeSearchPanel(view)}
|
||||
type="button"
|
||||
aria-label={t('close')}
|
||||
>
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<Tooltip id="search-close" description={<>{t('close')} (Esc)</>}>
|
||||
<button
|
||||
className="close"
|
||||
onClick={() => closeSearchPanel(view)}
|
||||
type="button"
|
||||
aria-label={t('close')}
|
||||
>
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</Tooltip>
|
||||
</div>
|
||||
</form>
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue