|
|
@@ -2,6 +2,7 @@ import { useTranslation } from 'react-i18next'
|
|
|
import { useRailContext } from '../contexts/rail-context'
|
|
|
import OLIconButton from '@/features/ui/components/ol/ol-icon-button'
|
|
|
import React from 'react'
|
|
|
+import OLTooltip from '@/features/ui/components/ol/ol-tooltip'
|
|
|
|
|
|
export default function RailPanelHeader({
|
|
|
title,
|
|
|
@@ -18,13 +19,19 @@ export default function RailPanelHeader({
|
|
|
|
|
|
<div className="rail-panel-header-actions">
|
|
|
{actions}
|
|
|
- <OLIconButton
|
|
|
- onClick={handlePaneCollapse}
|
|
|
- className="rail-panel-header-button-subdued"
|
|
|
- icon="close"
|
|
|
- accessibilityLabel={t('close')}
|
|
|
- size="sm"
|
|
|
- />
|
|
|
+ <OLTooltip
|
|
|
+ id="close-rail-panel"
|
|
|
+ description={t('close')}
|
|
|
+ overlayProps={{ placement: 'bottom' }}
|
|
|
+ >
|
|
|
+ <OLIconButton
|
|
|
+ onClick={handlePaneCollapse}
|
|
|
+ className="rail-panel-header-button-subdued"
|
|
|
+ icon="close"
|
|
|
+ accessibilityLabel={t('close')}
|
|
|
+ size="sm"
|
|
|
+ />
|
|
|
+ </OLTooltip>
|
|
|
</div>
|
|
|
</header>
|
|
|
)
|