This is an automated email from the ASF dual-hosted git repository.

arivero pushed a commit to branch table-time-comparison
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 126cae89e8848f44947dcb8911ef4c36c682f207
Author: Kamil Gabryjelski <[email protected]>
AuthorDate: Mon Mar 11 15:35:42 2024 +0100

    Use control header
---
 .../src/explore/components/controls/ComparisonRangeLabel.tsx        | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/superset-frontend/src/explore/components/controls/ComparisonRangeLabel.tsx 
b/superset-frontend/src/explore/components/controls/ComparisonRangeLabel.tsx
index b2ec6da3b1..6ffb449c03 100644
--- a/superset-frontend/src/explore/components/controls/ComparisonRangeLabel.tsx
+++ b/superset-frontend/src/explore/components/controls/ComparisonRangeLabel.tsx
@@ -28,6 +28,7 @@ import {
   t,
   fetchTimeRange,
 } from '@superset-ui/core';
+import ControlHeader from 'src/explore/components/ControlHeader';
 import { RootState } from 'src/views/store';
 import { Tooltip } from 'src/components/Tooltip';
 
@@ -84,7 +85,8 @@ export const ComparisonRangeLabel = () => {
   }, [currentTimeRangeFilters, shift]);
 
   return labels.length ? (
-    <Tooltip title={t('Actual time range for comparison')}>
+    <>
+      <ControlHeader label={t('Actual range for comparison')} />
       {labels.map((label, index) => (
         <div
           css={theme => css`
@@ -97,6 +99,6 @@ export const ComparisonRangeLabel = () => {
           {index < labels.length - 1 ? ',' : ''}
         </div>
       ))}
-    </Tooltip>
+    </>
   ) : null;
 };

Reply via email to