mirror of
https://github.com/apache/superset.git
synced 2026-04-20 08:34:37 +00:00
feat(theming): land Ant Design v5 overhaul — dynamic themes, real dark mode + massive styling refactor (#31590)
Co-authored-by: Enzo Martellucci <52219496+EnxDev@users.noreply.github.com> Co-authored-by: Diego Pucci <diegopucci.me@gmail.com> Co-authored-by: Mehmet Salih Yavuz <salih.yavuz@proton.me> Co-authored-by: Geido <60598000+geido@users.noreply.github.com> Co-authored-by: Alexandru Soare <37236580+alexandrusoare@users.noreply.github.com> Co-authored-by: Damian Pendrak <dpendrak@gmail.com> Co-authored-by: Pius Iniobong <67148161+payose@users.noreply.github.com> Co-authored-by: Enzo Martellucci <enzomartellucci@gmail.com> Co-authored-by: Kamil Gabryjelski <kamil.gabryjelski@gmail.com>
This commit is contained in:
committed by
GitHub
parent
2cc1ef88c8
commit
dd129fa403
@@ -34,7 +34,7 @@ import {
|
||||
XYChart,
|
||||
buildChartTheme,
|
||||
} from '@visx/xychart';
|
||||
import { extendedDayjs } from 'src/utils/dates';
|
||||
import { extendedDayjs } from '@superset-ui/core/utils/dates';
|
||||
|
||||
interface Props {
|
||||
ariaLabel: string;
|
||||
@@ -208,7 +208,7 @@ const SparklineCell = ({
|
||||
snapTooltipToDatumX
|
||||
snapTooltipToDatumY
|
||||
verticalCrosshairStyle={{
|
||||
stroke: `${theme.colors.grayscale.dark1}`,
|
||||
stroke: `${theme.colorText}`,
|
||||
strokeDasharray: '3 3',
|
||||
strokeWidth: 1,
|
||||
}}
|
||||
|
||||
@@ -20,14 +20,14 @@ import { useMemo } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import Mustache from 'mustache';
|
||||
import { scaleLinear } from 'd3-scale';
|
||||
import TableView from 'src/components/TableView';
|
||||
import { styled, t } from '@superset-ui/core';
|
||||
import {
|
||||
InfoTooltipWithTrigger,
|
||||
MetricOption,
|
||||
} from '@superset-ui/chart-controls';
|
||||
InfoTooltip,
|
||||
TableView,
|
||||
Typography,
|
||||
} from '@superset-ui/core/components';
|
||||
import { styled, t } from '@superset-ui/core';
|
||||
import { MetricOption } from '@superset-ui/chart-controls';
|
||||
import sortNumericValues from 'src/utils/sortNumericValues';
|
||||
|
||||
import FormattedNumber from './FormattedNumber';
|
||||
import SparklineCell from './SparklineCell';
|
||||
|
||||
@@ -128,7 +128,7 @@ const TimeTable = ({
|
||||
<>
|
||||
{columnConfig.label}{' '}
|
||||
{columnConfig.tooltip && (
|
||||
<InfoTooltipWithTrigger
|
||||
<InfoTooltip
|
||||
tooltip={columnConfig.tooltip}
|
||||
label={`tt-col-${i}`}
|
||||
placement="top"
|
||||
@@ -258,9 +258,13 @@ const TimeTable = ({
|
||||
const column = row;
|
||||
if (fullUrl) {
|
||||
return (
|
||||
<a href={fullUrl} rel="noopener noreferrer" target="_blank">
|
||||
<Typography.Link
|
||||
href={fullUrl}
|
||||
rel="noopener noreferrer"
|
||||
target="_blank"
|
||||
>
|
||||
{column.label}
|
||||
</a>
|
||||
</Typography.Link>
|
||||
);
|
||||
}
|
||||
return column.label;
|
||||
|
||||
Reference in New Issue
Block a user