Compare commits

...

6 Commits

Author SHA1 Message Date
Enzo Martellucci
3f77e215f1 style(Button): change 'secondary' variant to 'outlined' and add 'ghost' to 'tertiary' variant 2025-07-24 11:38:27 +02:00
Enzo Martellucci
4503d169db Merge branch 'master' into enxdev/refactor/replace-old-tokens 2025-07-24 10:46:49 +02:00
Enzo Martellucci
5cc9c7f660 replace colorTextBase token with colorText token for the text 2025-07-23 10:37:30 +02:00
Enzo Martellucci
eb016c9c31 Merge branch 'master' into enxdev/refactor/replace-old-tokens 2025-07-23 10:33:17 +02:00
Enzo Martellucci
aae92db74f replace colorBgBase token 2025-07-22 21:12:41 +02:00
Enzo Martellucci
4135d249b1 style(UI): replace deprecated colors with antd tokens 2025-07-21 17:14:57 +02:00
148 changed files with 411 additions and 423 deletions

View File

@@ -77,7 +77,7 @@ const themeDecorator = (Story, context) => {
minHeight: '100vh', minHeight: '100vh',
width: '100%', width: '100%',
padding: 24, padding: 24,
backgroundColor: themeObject.theme.colorBgBase, backgroundColor: themeObject.theme.colorBgContainer,
}} }}
> >
<Story {...context} /> <Story {...context} />

View File

@@ -24,7 +24,7 @@ import { css, styled, useTheme, t } from '@superset-ui/core';
const StyledCalculatorIcon = styled(CalculatorOutlined)` const StyledCalculatorIcon = styled(CalculatorOutlined)`
${({ theme }) => css` ${({ theme }) => css`
color: ${theme.colors.grayscale.base}; color: ${theme.colorText};
font-size: ${theme.fontSizeSM}px; font-size: ${theme.fontSizeSM}px;
& svg { & svg {
margin-left: ${theme.sizeUnit}px; margin-left: ${theme.sizeUnit}px;

View File

@@ -27,8 +27,8 @@ export default function FallbackComponent({ error, height, width }: Props) {
return ( return (
<div <div
css={(theme: SupersetTheme) => ({ css={(theme: SupersetTheme) => ({
backgroundColor: theme.colors.grayscale.dark2, backgroundColor: theme.colorTextBase,
color: theme.colors.grayscale.light5, color: theme.colorBgContainer,
overflow: 'auto', overflow: 'auto',
padding: 32, padding: 32,
})} })}

View File

@@ -65,16 +65,18 @@ export function Button(props: ButtonProps) {
let antdType: ButtonType = 'default'; let antdType: ButtonType = 'default';
let variant: ButtonVariantType = 'solid'; let variant: ButtonVariantType = 'solid';
let color: ButtonColorType = 'primary'; let color: ButtonColorType = 'primary';
let ghost: boolean = false;
if (!buttonStyle || buttonStyle === 'primary') { if (!buttonStyle || buttonStyle === 'primary') {
variant = 'solid'; variant = 'solid';
antdType = 'primary'; antdType = 'primary';
} else if (buttonStyle === 'secondary') { } else if (buttonStyle === 'secondary') {
variant = 'filled'; variant = 'outlined';
color = 'primary'; color = 'primary';
} else if (buttonStyle === 'tertiary') { } else if (buttonStyle === 'tertiary') {
variant = 'outlined'; variant = 'outlined';
color = 'default'; color = 'default';
ghost = true;
} else if (buttonStyle === 'dashed') { } else if (buttonStyle === 'dashed') {
variant = 'dashed'; variant = 'dashed';
antdType = 'dashed'; antdType = 'dashed';
@@ -100,6 +102,7 @@ export function Button(props: ButtonProps) {
const button = ( const button = (
<AntdButton <AntdButton
ghost={ghost}
href={disabled ? undefined : href} href={disabled ? undefined : href}
disabled={disabled} disabled={disabled}
type={antdType} type={antdType}

View File

@@ -52,7 +52,7 @@ export const CheckboxHalfChecked = () => {
> >
<path <path
d="M16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0Z" d="M16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0Z"
fill={theme.colors.grayscale.light1} fill={theme.colorBorder}
/> />
<path d="M14 10H4V8H14V10Z" fill="white" /> <path d="M14 10H4V8H14V10Z" fill="white" />
</svg> </svg>
@@ -71,7 +71,7 @@ export const CheckboxUnchecked = () => {
> >
<path <path
d="M16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0Z" d="M16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0Z"
fill={theme.colors.grayscale.light2} fill={theme.colorBorderSecondary}
/> />
<path d="M16 2V16H2V2H16V2Z" fill="white" /> <path d="M16 2V16H2V2H16V2Z" fill="white" />
</svg> </svg>

View File

@@ -27,7 +27,7 @@ const StyledDiv = styled.div`
padding-top: 8px; padding-top: 8px;
width: 50%; width: 50%;
label { label {
color: ${({ theme }) => theme.colors.grayscale.base}; color: ${({ theme }) => theme.colorText};
} }
`; `;

View File

@@ -31,7 +31,7 @@ const MenuDots = styled.div`
width: ${({ theme }) => theme.sizeUnit * 0.75}px; width: ${({ theme }) => theme.sizeUnit * 0.75}px;
height: ${({ theme }) => theme.sizeUnit * 0.75}px; height: ${({ theme }) => theme.sizeUnit * 0.75}px;
border-radius: 50%; border-radius: 50%;
background-color: ${({ theme }) => theme.colors.grayscale.light1}; background-color: ${({ theme }) => theme.colorBorder};
font-weight: ${({ theme }) => theme.fontWeightNormal}; font-weight: ${({ theme }) => theme.fontWeightNormal};
display: inline-flex; display: inline-flex;
@@ -53,7 +53,7 @@ const MenuDots = styled.div`
width: ${({ theme }) => theme.sizeUnit * 0.75}px; width: ${({ theme }) => theme.sizeUnit * 0.75}px;
height: ${({ theme }) => theme.sizeUnit * 0.75}px; height: ${({ theme }) => theme.sizeUnit * 0.75}px;
border-radius: 50%; border-radius: 50%;
background-color: ${({ theme }) => theme.colors.grayscale.light1}; background-color: ${({ theme }) => theme.colorBorder};
} }
&::before { &::before {

View File

@@ -398,13 +398,13 @@ export const DropdownContainer = forwardRef(
} }
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
border-radius: 9px; border-radius: 9px;
background-color: ${theme.colors.grayscale.light1}; background-color: ${theme.colorBorder};
border: 3px solid transparent; border: 3px solid transparent;
background-clip: content-box; background-clip: content-box;
} }
::-webkit-scrollbar-track { ::-webkit-scrollbar-track {
background-color: ${theme.colors.grayscale.light4}; background-color: ${theme.colorBgContainer};
border-left: 1px solid ${theme.colors.grayscale.light2}; border-left: 1px solid ${theme.colorBorderSecondary};
} }
} }
`} `}
@@ -436,7 +436,7 @@ export const DropdownContainer = forwardRef(
color={ color={
(dropdownTriggerCount ?? overflowingCount) > 0 (dropdownTriggerCount ?? overflowingCount) > 0
? theme.colorPrimary ? theme.colorPrimary
: theme.colors.grayscale.light1 : theme.colorBorder
} }
showZero showZero
css={css` css={css`
@@ -445,7 +445,7 @@ export const DropdownContainer = forwardRef(
/> />
<Icons.DownOutlined <Icons.DownOutlined
iconSize="m" iconSize="m"
iconColor={theme.colors.grayscale.light1} iconColor={theme.colorBorder}
css={css` css={css`
.anticon { .anticon {
display: flex; display: flex;

View File

@@ -53,7 +53,7 @@ const StyledCard = styled(Card)`
const Cover = styled.div` const Cover = styled.div`
height: 264px; height: 264px;
border-bottom: 1px solid ${({ theme }) => theme.colors.grayscale.light2}; border-bottom: 1px solid ${({ theme }) => theme.colorBorderSecondary};
overflow: hidden; overflow: hidden;
.cover-footer { .cover-footer {

View File

@@ -30,7 +30,7 @@ const MetadataWrapper = styled.div`
const MetadataText = styled.span` const MetadataText = styled.span`
font-size: ${({ theme }) => theme.fontSizeXS}px; font-size: ${({ theme }) => theme.fontSizeXS}px;
color: ${({ theme }) => theme.colors.grayscale.light1}; color: ${({ theme }) => theme.colorBorder};
font-weight: ${({ theme }) => theme.fontWeightStrong}; font-weight: ${({ theme }) => theme.fontWeightStrong};
`; `;

View File

@@ -60,12 +60,12 @@ const menuItemStyles = (theme: any) => css`
} }
&:hover { &:hover {
background: ${theme.colors.grayscale.light3}; background: ${theme.colorFill};
} }
&.active { &.active {
font-weight: ${theme.fontWeightStrong}; font-weight: ${theme.fontWeightStrong};
background: ${theme.colors.grayscale.light2}; background: ${theme.colorBorderSecondary};
} }
} }

View File

@@ -66,16 +66,14 @@ export default function PopoverSection({
<Icons.InfoCircleOutlined <Icons.InfoCircleOutlined
role="img" role="img"
iconSize="s" iconSize="s"
iconColor={theme.colors.grayscale.light1} iconColor={theme.colorBorder}
/> />
</Tooltip> </Tooltip>
)} )}
<Icons.CheckOutlined <Icons.CheckOutlined
iconSize="s" iconSize="s"
role="img" role="img"
iconColor={ iconColor={isSelected ? theme.colorPrimary : theme.colorText}
isSelected ? theme.colorPrimary : theme.colors.grayscale.base
}
/> />
</div> </div>
<div <div

View File

@@ -45,7 +45,7 @@ const RefreshLabel = ({
onClick={disabled ? undefined : onClick} onClick={disabled ? undefined : onClick}
css={(theme: SupersetTheme) => ({ css={(theme: SupersetTheme) => ({
cursor: 'pointer', cursor: 'pointer',
color: theme.colors.grayscale.base, color: theme.colorText,
'&:hover': { color: theme.colorPrimary }, '&:hover': { color: theme.colorPrimary },
})} })}
/> />

View File

@@ -103,17 +103,17 @@ export const StyledLoadingText = styled.div`
${({ theme }) => ` ${({ theme }) => `
margin-left: ${theme.sizeUnit * 3}px; margin-left: ${theme.sizeUnit * 3}px;
line-height: ${theme.sizeUnit * 8}px; line-height: ${theme.sizeUnit * 8}px;
color: ${theme.colors.grayscale.light1}; color: ${theme.colorBorder};
`} `}
`; `;
export const StyledHelperText = styled.div` export const StyledHelperText = styled.div`
${({ theme }) => ` ${({ theme }) => `
padding: ${theme.sizeUnit * 2}px ${theme.sizeUnit * 3}px; padding: ${theme.sizeUnit * 2}px ${theme.sizeUnit * 3}px;
color: ${theme.colors.grayscale.base}; color: ${theme.colorText};
font-size: ${theme.fontSizeSM}px; font-size: ${theme.fontSizeSM}px;
cursor: default; cursor: default;
border-bottom: 1px solid ${theme.colors.grayscale.light2}; border-bottom: 1px solid ${theme.colorBorderSecondary};
`} `}
`; `;
@@ -139,6 +139,6 @@ export const StyledErrorMessage = styled.div`
export const StyledBulkActionsContainer = styled(Flex)` export const StyledBulkActionsContainer = styled(Flex)`
${({ theme }) => ` ${({ theme }) => `
padding: ${theme.sizeUnit}px; padding: ${theme.sizeUnit}px;
border-top: 1px solid ${theme.colors.grayscale.light3}; border-top: 1px solid ${theme.colorFill};
`} `}
`; `;

View File

@@ -20,7 +20,7 @@ import { styled } from '../../../..';
import { Constants } from '../../..'; import { Constants } from '../../..';
const GrayCell = styled.span` const GrayCell = styled.span`
color: ${({ theme }) => theme.colors.grayscale.light1}; color: ${({ theme }) => theme.colorBorder};
`; `;
function NullCell() { function NullCell() {

View File

@@ -74,7 +74,7 @@ function HeaderWithRadioGroup(props: HeaderWithRadioGroupProps) {
> >
<Icons.SettingOutlined <Icons.SettingOutlined
iconSize="m" iconSize="m"
iconColor={theme.colors.grayscale.light1} iconColor={theme.colorBorder}
css={css` css={css`
margin-top: ${theme.sizeUnit * 0.75}px; margin-top: ${theme.sizeUnit * 0.75}px;
margin-right: ${theme.sizeUnit}px; margin-right: ${theme.sizeUnit}px;

View File

@@ -83,7 +83,7 @@ const Tabs = Object.assign(StyledTabs, {
const StyledEditableTabs = styled(StyledTabs)` const StyledEditableTabs = styled(StyledTabs)`
${({ theme }) => ` ${({ theme }) => `
.ant-tabs-content-holder { .ant-tabs-content-holder {
background: ${theme.colors.grayscale.light5}; background: ${theme.colorBgContainer};
} }
& > .ant-tabs-nav { & > .ant-tabs-nav {
@@ -99,7 +99,7 @@ const StyledEditableTabs = styled(StyledTabs)`
`; `;
const StyledCloseOutlined = styled(Icons.CloseOutlined)` const StyledCloseOutlined = styled(Icons.CloseOutlined)`
color: ${({ theme }) => theme.colors.grayscale.base}; color: ${({ theme }) => theme.colorText};
`; `;
export const EditableTabs = Object.assign(StyledEditableTabs, { export const EditableTabs = Object.assign(StyledEditableTabs, {
TabPane: StyledTabPane, TabPane: StyledTabPane,

View File

@@ -79,7 +79,7 @@ const StyledVisibleItem = styled.span`
const StyledTooltipItem = styled.div` const StyledTooltipItem = styled.div`
.link { .link {
color: ${({ theme }) => theme.colors.grayscale.light5}; color: ${({ theme }) => theme.colorBgContainer};
display: block; display: block;
text-decoration: underline; text-decoration: underline;
} }

View File

@@ -32,7 +32,7 @@ export const GlobalStyles = () => {
} }
body { body {
background-color: ${theme.colorBgBase}; background-color: ${theme.colorBgContainer};
color: ${theme.colorText}; color: ${theme.colorText};
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
margin: 0; margin: 0;

View File

@@ -24,7 +24,7 @@ import { ResizeCallbackData } from 'react-resizable';
import ResizablePanel, { Size } from './ResizablePanel'; import ResizablePanel, { Size } from './ResizablePanel';
export const SupersetBody = styled.div` export const SupersetBody = styled.div`
background: ${({ theme }) => theme.colors.grayscale.light4}; background: ${({ theme }) => theme.colorBgContainer};
padding: 16px; padding: 16px;
min-height: 100%; min-height: 100%;

View File

@@ -84,7 +84,7 @@ export const BasicCountryMapStory = (
return ( return (
<div <div
style={{ style={{
color: theme.colors.grayscale.base, color: theme.colorText,
textAlign: 'center', textAlign: 'center',
padding: 20, padding: 20,
}} }}

View File

@@ -124,7 +124,7 @@ function Calendar(element, props) {
colorScale, colorScale,
min: legendColors[0], min: legendColors[0],
max: legendColors[legendColors.length - 1], max: legendColors[legendColors.length - 1],
empty: theme.colors.grayscale.light5, empty: theme.colorBgContainer,
}, },
displayLegend: showLegend, displayLegend: showLegend,
itemName: '', itemName: '',

View File

@@ -32,8 +32,8 @@ const Calendar = ({ className, ...otherProps }) => {
.d3-tip { .d3-tip {
line-height: 1; line-height: 1;
padding: ${theme.sizeUnit * 3}px; padding: ${theme.sizeUnit * 3}px;
background: ${theme.colors.grayscale.dark2}; background: ${theme.colorTextBase};
color: ${theme.colors.grayscale.light5}; color: ${theme.colorBgContainer};
border-radius: 4px; border-radius: 4px;
pointer-events: none; pointer-events: none;
z-index: 1000; z-index: 1000;
@@ -46,7 +46,7 @@ const Calendar = ({ className, ...otherProps }) => {
font-size: ${theme.fontSizeXS}; font-size: ${theme.fontSizeXS};
width: 100%; width: 100%;
line-height: 1; line-height: 1;
color: ${theme.colors.grayscale.dark2}; color: ${theme.colorTextBase};
position: absolute; position: absolute;
pointer-events: none; pointer-events: none;
} }
@@ -112,8 +112,8 @@ export default styled(Calendar)`
.superset-legacy-chart-calendar .d3-tip { .superset-legacy-chart-calendar .d3-tip {
line-height: 1; line-height: 1;
padding: ${theme.sizeUnit * 3}px; padding: ${theme.sizeUnit * 3}px;
background: ${theme.colors.grayscale.dark2}; background: ${theme.colorTextBase};
color: ${theme.colors.grayscale.light5}; color: ${theme.colorBgContainer};
border-radius: ${theme.borderRadius}px; border-radius: ${theme.borderRadius}px;
pointer-events: none; pointer-events: none;
z-index: 1000; z-index: 1000;
@@ -124,7 +124,7 @@ export default styled(Calendar)`
} }
.cal-heatmap-container .graph-label { .cal-heatmap-container .graph-label {
fill: ${theme.colors.grayscale.base}; fill: ${theme.colorText};
font-size: ${theme.fontSizeXS}px; font-size: ${theme.fontSizeXS}px;
} }
@@ -134,11 +134,11 @@ export default styled(Calendar)`
} }
.cal-heatmap-container .graph-rect { .cal-heatmap-container .graph-rect {
fill: ${theme.colors.grayscale.light2}; fill: ${theme.colorBorderSecondary};
} }
.cal-heatmap-container .graph-subdomain-group rect:hover { .cal-heatmap-container .graph-subdomain-group rect:hover {
stroke: ${theme.colors.grayscale.dark2}; stroke: ${theme.colorTextBase};
stroke-width: 1px; stroke-width: 1px;
} }
@@ -152,88 +152,88 @@ export default styled(Calendar)`
} }
.cal-heatmap-container .qi { .cal-heatmap-container .qi {
background-color: ${theme.colors.grayscale.base}; background-color: ${theme.colorText};
fill: ${theme.colors.grayscale.base};
}
.cal-heatmap-container .q1 {
background-color: ${theme.colors.warning.light2};
fill: ${theme.colors.warning.light2};
}
.cal-heatmap-container .q2 {
background-color: ${theme.colors.warning.light1};
fill: ${theme.colors.warning.light1};
}
.cal-heatmap-container .q3 {
background-color: ${theme.colors.success.light1};
fill: ${theme.colors.success.light1};
}
.cal-heatmap-container .q4 {
background-color: ${theme.colorSuccess};
fill: ${theme.colorSuccess};
}
.cal-heatmap-container .q5 {
background-color: ${theme.colors.success.dark1};
fill: ${theme.colors.success.dark1};
}
.cal-heatmap-container rect.highlight {
stroke: ${theme.colorText};
stroke-width: 1;
}
.cal-heatmap-container text.highlight {
fill: ${theme.colorText}; fill: ${theme.colorText};
} }
.cal-heatmap-container rect.highlight-now { .cal-heatmap-container .q1 {
stroke: ${theme.colorError}; background-color: ${theme.colorError};
}
.cal-heatmap-container text.highlight-now {
fill: ${theme.colorError}; fill: ${theme.colorError};
font-weight: ${theme.fontWeightStrong};
} }
.cal-heatmap-container .domain-background { .cal-heatmap-container .q2 {
fill: none; background-color: ${theme.colorError};
shape-rendering: crispedges; fill: ${theme.colorError};
} }
.ch-tooltip { .cal-heatmap-container .q3 {
padding: ${theme.sizeUnit * 2}px; background-color: ${theme.colorSuccessHover};
background: ${theme.colorText}; fill: ${theme.colorSuccessHover};
color: ${theme.colors.grayscale.light1};
font-size: ${theme.fontSizeSM}px;
line-height: 1.4;
width: 140px;
position: absolute;
z-index: 99999;
text-align: center;
border-radius: ${theme.borderRadius}px;
box-shadow: 2px 2px 2px ${theme.colors.grayscale.dark2};
display: none;
box-sizing: border-box;
} }
.ch-tooltip::after { .cal - heatmap - container.q4 {
position: absolute; background - color: ${theme.colorSuccess};
width: 0; fill: ${theme.colorSuccess};
height: 0; }
border-color: transparent;
border-style: solid; .cal - heatmap - container.q5 {
content: ''; background - color: ${theme.colorSuccessActive};
padding: 0; fill: ${theme.colorSuccessActive};
display: block; }
bottom: -${theme.sizeUnit}px;
left: 50%; .cal - heatmap - container rect.highlight {
margin-left: -${theme.sizeUnit}px; stroke: ${theme.colorText};
border-width: ${theme.sizeUnit}px ${theme.sizeUnit}px 0; stroke - width: 1;
border-top-color: ${theme.colorSplit}; }
}
`} .cal - heatmap - container text.highlight {
fill: ${theme.colorText};
}
.cal - heatmap - container rect.highlight - now {
stroke: ${theme.colorError};
}
.cal - heatmap - container text.highlight - now {
fill: ${theme.colorError};
font - weight: ${theme.fontWeightStrong};
}
.cal - heatmap - container.domain - background {
fill: none;
shape - rendering: crispedges;
}
.ch - tooltip {
padding: ${theme.sizeUnit * 2} px;
background: ${theme.colorText};
color: ${theme.colorBorder};
font - size: ${theme.fontSizeSM} px;
line - height: 1.4;
width: 140px;
position: absolute;
z - index: 99999;
text - align: center;
border - radius: ${theme.borderRadius} px;
box - shadow: 2px 2px 2px ${theme.colorTextBase};
display: none;
box - sizing: border - box;
}
.ch - tooltip::after {
position: absolute;
width: 0;
height: 0;
border - color: transparent;
border - style: solid;
content: '';
padding: 0;
display: block;
bottom: -${theme.sizeUnit} px;
left: 50 %;
margin - left: -${theme.sizeUnit} px;
border - width: ${theme.sizeUnit}px ${theme.sizeUnit}px 0;
border - top - color: ${theme.colorSplit};
}
`}
`; `;

View File

@@ -30,7 +30,7 @@ const CountryMap = ({ className, ...otherProps }) => (
export default styled(CountryMap)` export default styled(CountryMap)`
${({ theme }) => ` ${({ theme }) => `
.superset-legacy-chart-country-map svg { .superset-legacy-chart-country-map svg {
background-color: ${theme.colors.grayscale.light5}; background-color: ${theme.colorBgContainer};
} }
.superset-legacy-chart-country-map { .superset-legacy-chart-country-map {
@@ -38,13 +38,13 @@ export default styled(CountryMap)`
} }
.superset-legacy-chart-country-map .background { .superset-legacy-chart-country-map .background {
fill: ${theme.colors.grayscale.light5}; fill: ${theme.colorBgContainer};
pointer-events: all; pointer-events: all;
} }
.superset-legacy-chart-country-map .map-layer { .superset-legacy-chart-country-map .map-layer {
fill: ${theme.colors.grayscale.light5}; fill: ${theme.colorBgContainer};
stroke: ${theme.colors.grayscale.light1}; stroke: ${theme.colorBorder};
} }
.superset-legacy-chart-country-map .effect-layer { .superset-legacy-chart-country-map .effect-layer {
@@ -69,7 +69,7 @@ export default styled(CountryMap)`
.superset-legacy-chart-country-map path.region { .superset-legacy-chart-country-map path.region {
cursor: pointer; cursor: pointer;
stroke: ${theme.colors.grayscale.light2}; stroke: ${theme.colorBorderSecondary};
} }
`} `}
`; `;

View File

@@ -65,7 +65,7 @@ const StyledDiv = styled.div`
} }
.superset-legacy-chart-horizon .horizon-row { .superset-legacy-chart-horizon .horizon-row {
border-bottom: solid 1px ${theme.colors.grayscale.light2}; border-bottom: solid 1px ${theme.colorBorderSecondary};
border-top: 0; border-top: 0;
padding: 0; padding: 0;
margin: 0; margin: 0;

View File

@@ -70,7 +70,7 @@ const StyledDiv = styled.div`
} }
.reactable-data tr:hover { .reactable-data tr:hover {
background-color: ${theme.colors.grayscale.light3}; background-color: ${theme.colorFill};
} }
.reactable-data tr .false { .reactable-data tr .false {
@@ -90,14 +90,14 @@ const StyledDiv = styled.div`
} }
.reactable-data .control td { .reactable-data .control td {
background-color: ${theme.colors.grayscale.light3}; background-color: ${theme.colorFill};
} }
.reactable-header-sortable:hover, .reactable-header-sortable:hover,
.reactable-header-sortable:focus, .reactable-header-sortable:focus,
.reactable-header-sort-asc, .reactable-header-sort-asc,
.reactable-header-sort-desc { .reactable-header-sort-desc {
background-color: ${theme.colors.grayscale.light3}; background-color: ${theme.colorFill};
position: relative; position: relative;
} }

View File

@@ -39,7 +39,7 @@ export default styled(ParallelCoordinates)`
overflow: auto; overflow: auto;
div.row { div.row {
&:hover { &:hover {
background-color: ${theme.colors.grayscale.light2}; background-color: ${theme.colorBorderSecondary};
} }
} }
} }
@@ -62,14 +62,14 @@ export default styled(ParallelCoordinates)`
fill: transparent; fill: transparent;
} }
.parcoords rect.background:hover { .parcoords rect.background:hover {
fill: ${addAlpha(theme.colors.grayscale.base, 0.2)}; fill: ${addAlpha(theme.colorText, 0.2)};
} }
.parcoords .resize rect { .parcoords .resize rect {
fill: ${addAlpha(theme.colors.grayscale.dark2, 0.1)}; fill: ${addAlpha(theme.colorTextBase, 0.1)};
} }
.parcoords rect.extent { .parcoords rect.extent {
fill: ${addAlpha(theme.colors.grayscale.light5, 0.25)}; fill: ${addAlpha(theme.colorBgContainer, 0.25)};
stroke: ${addAlpha(theme.colors.grayscale.dark2, 0.6)}; stroke: ${addAlpha(theme.colorTextBase, 0.6)};
} }
.parcoords .axis line, .parcoords .axis line,
.parcoords .axis path { .parcoords .axis path {
@@ -93,7 +93,7 @@ export default styled(ParallelCoordinates)`
-moz-user-select: none; -moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
user-select: none; user-select: none;
background-color: ${theme.colors.grayscale.light5}; background-color: ${theme.colorBgContainer};
} }
/* data table styles */ /* data table styles */
@@ -106,7 +106,7 @@ export default styled(ParallelCoordinates)`
margin: 0px; margin: 0px;
} }
.parcoords .row:nth-of-type(odd) { .parcoords .row:nth-of-type(odd) {
background: ${addAlpha(theme.colors.grayscale.dark2, 0.05)}; background: ${addAlpha(theme.colorTextBase, 0.05)};
} }
.parcoords .header { .parcoords .header {
font-weight: ${theme.fontWeightStrong}; font-weight: ${theme.fontWeightStrong};

View File

@@ -40,8 +40,8 @@ export default styled(Partition)`
} }
.superset-legacy-chart-partition rect { .superset-legacy-chart-partition rect {
stroke: ${theme.colors.grayscale.light2}; stroke: ${theme.colorBorderSecondary};
fill: ${theme.colors.grayscale.light1}; fill: ${theme.colorBorder};
fill-opacity: 80%; fill-opacity: 80%;
transition: fill-opacity 180ms linear; transition: fill-opacity 180ms linear;
cursor: pointer; cursor: pointer;
@@ -57,7 +57,7 @@ export default styled(Partition)`
} }
.superset-legacy-chart-partition g:hover text { .superset-legacy-chart-partition g:hover text {
fill: ${theme.colors.grayscale.dark2}; fill: ${theme.colorTextBase};
} }
.superset-legacy-chart-partition .partition-tooltip { .superset-legacy-chart-partition .partition-tooltip {
@@ -67,14 +67,14 @@ export default styled(Partition)`
opacity: 0; opacity: 0;
padding: ${theme.sizeUnit}px; padding: ${theme.sizeUnit}px;
pointer-events: none; pointer-events: none;
background-color: ${theme.colors.grayscale.dark2}; background-color: ${theme.colorTextBase};
border-radius: ${theme.borderRadius}px; border-radius: ${theme.borderRadius}px;
} }
.partition-tooltip td { .partition-tooltip td {
padding-left: ${theme.sizeUnit}px; padding-left: ${theme.sizeUnit}px;
font-size: ${theme.fontSizeSM}px; font-size: ${theme.fontSizeSM}px;
color: ${theme.colors.grayscale.light5}; color: ${theme.colorBgContainer};
} }
`} `}
`; `;

View File

@@ -29,8 +29,8 @@ const Rose = ({ className, ...otherProps }) => (
.tooltip { .tooltip {
line-height: 1; line-height: 1;
padding: ${theme.sizeUnit * 3}px; padding: ${theme.sizeUnit * 3}px;
background: ${theme.colors.grayscale.dark2}; background: ${theme.colorTextBase};
color: ${theme.colors.grayscale.light5}; color: ${theme.colorBgContainer};
border-radius: 4px; border-radius: 4px;
pointer-events: none; pointer-events: none;
z-index: 1000; z-index: 1000;
@@ -46,7 +46,7 @@ export default styled(Rose)`
${({ theme }) => ` ${({ theme }) => `
.superset-legacy-chart-rose path { .superset-legacy-chart-rose path {
transition: fill-opacity 180ms linear; transition: fill-opacity 180ms linear;
stroke: ${theme.colors.grayscale.light5}; stroke: ${theme.colorBgContainer};
stroke-width: 1px; stroke-width: 1px;
stroke-opacity: 1; stroke-opacity: 1;
fill-opacity: 0.75; fill-opacity: 0.75;

View File

@@ -39,7 +39,7 @@ export default styled(WorldMapComponent)`
.superset-legacy-chart-world-map { .superset-legacy-chart-world-map {
position: relative; position: relative;
svg { svg {
background-color: ${({ theme }) => theme.colors.grayscale.light5}; background-color: ${({ theme }) => theme.colorBgContainer};
} }
} }
.hoverinfo { .hoverinfo {

View File

@@ -203,14 +203,14 @@ function WorldMap(element, props) {
height, height,
data: processedData, data: processedData,
fills: { fills: {
defaultFill: theme.colors.grayscale.light2, defaultFill: theme.colorBorderSecondary,
}, },
geographyConfig: { geographyConfig: {
popupOnHover: !inContextMenu, popupOnHover: !inContextMenu,
highlightOnHover: !inContextMenu, highlightOnHover: !inContextMenu,
borderWidth: 1, borderWidth: 1,
borderColor: theme.colorSplit, borderColor: theme.colorSplit,
highlightBorderColor: theme.colors.grayscale.light5, highlightBorderColor: theme.colorBgContainer,
highlightFillColor: color, highlightFillColor: color,
highlightBorderWidth: 1, highlightBorderWidth: 1,
popupTemplate: (geo, d) => popupTemplate: (geo, d) =>
@@ -232,7 +232,7 @@ function WorldMap(element, props) {
animate: true, animate: true,
highlightOnHover: !inContextMenu, highlightOnHover: !inContextMenu,
highlightFillColor: color, highlightFillColor: color,
highlightBorderColor: theme.colors.grayscale.dark2, highlightBorderColor: theme.colorText,
highlightBorderWidth: 2, highlightBorderWidth: 2,
highlightBorderOpacity: 1, highlightBorderOpacity: 1,
highlightFillOpacity: 0.85, highlightFillOpacity: 0.85,

View File

@@ -27,8 +27,8 @@ const StyledLegend = styled.div`
${({ theme }) => ` ${({ theme }) => `
font-size: ${theme.fontSizeSM}px; font-size: ${theme.fontSizeSM}px;
position: absolute; position: absolute;
background: ${theme.colors.grayscale.light5}; background: ${theme.colorBgContainer};
box-shadow: 0 0 ${theme.sizeUnit}px ${theme.colors.grayscale.light2}; box-shadow: 0 0 ${theme.sizeUnit}px ${theme.colorBorderSecondary};
margin: ${theme.sizeUnit * 6}px; margin: ${theme.sizeUnit * 6}px;
padding: ${theme.sizeUnit * 3}px ${theme.sizeUnit * 5}px; padding: ${theme.sizeUnit * 3}px ${theme.sizeUnit * 5}px;
outline: none; outline: none;
@@ -42,7 +42,7 @@ const StyledLegend = styled.div`
& li a { & li a {
display: flex; display: flex;
color: ${theme.colors.grayscale.base}; color: ${theme.colorText};
text-decoration: none; text-decoration: none;
padding: ${theme.sizeUnit}px 0; padding: ${theme.sizeUnit}px 0;

View File

@@ -38,8 +38,8 @@ const StyledDiv = styled.div<{ top: number; left: number }>`
left: ${left}px; left: ${left}px;
padding: ${theme.sizeUnit * 2}px; padding: ${theme.sizeUnit * 2}px;
margin: ${theme.sizeUnit * 2}px; margin: ${theme.sizeUnit * 2}px;
background: ${theme.colors.grayscale.dark2}; background: ${theme.colorTextBase};
color: ${theme.colors.grayscale.light5}; color: ${theme.colorBgContainer};
maxWidth: 300px; maxWidth: 300px;
fontSize: ${theme.fontSizeSM}px; fontSize: ${theme.fontSizeSM}px;
zIndex: 9; zIndex: 9;

View File

@@ -164,15 +164,15 @@ export default styled(NVD3)`
.d3-tip.nv-event-annotation-layer-NATIVE { .d3-tip.nv-event-annotation-layer-NATIVE {
width: 200px; width: 200px;
border-radius: 2px; border-radius: 2px;
background-color: ${({ theme }) => theme.colors.grayscale.base}; background-color: ${({ theme }) => theme.colorText};
fill-opacity: 0.6; fill-opacity: 0.6;
margin: ${({ theme }) => theme.sizeUnit * 2}px; margin: ${({ theme }) => theme.sizeUnit * 2}px;
padding: ${({ theme }) => theme.sizeUnit * 2}px; padding: ${({ theme }) => theme.sizeUnit * 2}px;
color: ${({ theme }) => theme.colors.grayscale.light5}; color: ${({ theme }) => theme.colorBgContainer};
&:after { &:after {
content: '\\25BC'; content: '\\25BC';
font-size: ${({ theme }) => theme.fontSize}; font-size: ${({ theme }) => theme.fontSize};
color: ${({ theme }) => theme.colors.grayscale.base}; color: ${({ theme }) => theme.colorText};
position: absolute; position: absolute;
bottom: -14px; bottom: -14px;
left: 94px; left: 94px;

View File

@@ -130,13 +130,13 @@ export const MenuContainer = styled.div`
gap: ${theme.sizeUnit * 2}px; gap: ${theme.sizeUnit * 2}px;
&:hover { &:hover {
background-color: ${theme.colors.primary.light4}; background-color: ${theme.colorBgContainer};
} }
} }
.menu-divider { .menu-divider {
height: 1px; height: 1px;
background-color: ${theme.colors.grayscale.light2}; background-color: ${theme.colorBorderSecondary};
margin: ${theme.sizeUnit}px 0; margin: ${theme.sizeUnit}px 0;
} }
`} `}
@@ -165,16 +165,16 @@ export const PopoverContainer = styled.div`
export const PaginationContainer = styled.div` export const PaginationContainer = styled.div`
${({ theme }) => ` ${({ theme }) => `
border: 1px solid ${theme.colors.grayscale.light2}; border: 1px solid ${theme.colorBorderSecondary};
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: flex-end; justify-content: flex-end;
padding: ${theme.sizeUnit * 2}px ${theme.sizeUnit * 4}px; padding: ${theme.sizeUnit * 2}px ${theme.sizeUnit * 4}px;
border-top: 1px solid ${theme.colors.grayscale.light2}; border-top: 1px solid ${theme.colorBorderSecondary};
font-size: ${theme.fontSize}px; font-size: ${theme.fontSize}px;
color: ${theme.colorTextBase}; color: ${theme.colorTextBase};
transform: translateY(-${theme.sizeUnit}px); transform: translateY(-${theme.sizeUnit}px);
background: ${theme.colorBgBase}; background: ${theme.colorBgContainer};
`} `}
`; `;
@@ -222,7 +222,7 @@ export const PageButton = styled.div<{ disabled?: boolean }>`
svg { svg {
height: ${theme.sizeUnit * 3}px; height: ${theme.sizeUnit * 3}px;
width: ${theme.sizeUnit * 3}px; width: ${theme.sizeUnit * 3}px;
fill: ${disabled ? theme.colors.grayscale.light1 : theme.colors.grayscale.dark2}; fill: ${disabled ? theme.colorBorder : theme.colorTextBase};
} }
`} `}
`; `;
@@ -239,14 +239,14 @@ export const InfoText = styled.div`
max-width: 242px; max-width: 242px;
${({ theme }) => ` ${({ theme }) => `
padding: 0 ${theme.sizeUnit * 2}px; padding: 0 ${theme.sizeUnit * 2}px;
color: ${theme.colors.grayscale.base}; color: ${theme.colorText};
font-size: ${theme.fontSizeSM}px; font-size: ${theme.fontSizeSM}px;
`} `}
`; `;
export const ColumnLabel = styled.span` export const ColumnLabel = styled.span`
${({ theme }) => ` ${({ theme }) => `
color: ${theme.colors.grayscale.dark2}; color: ${theme.colorText};
`} `}
`; `;
@@ -279,9 +279,9 @@ export const StyledChartContainer = styled.div<{
${({ theme, height }) => css` ${({ theme, height }) => css`
height: ${height}px; height: ${height}px;
--ag-background-color: ${theme.colorBgBase}; --ag-background-color: ${theme.colorBgContainer};
--ag-foreground-color: ${theme.colorText}; --ag-foreground-color: ${theme.colorText};
--ag-header-background-color: ${theme.colorBgBase}; --ag-header-background-color: ${theme.colorBgContainer};
--ag-header-foreground-color: ${theme.colorText}; --ag-header-foreground-color: ${theme.colorText};
.dt-is-filter { .dt-is-filter {
@@ -292,7 +292,7 @@ export const StyledChartContainer = styled.div<{
} }
.dt-is-active-filter { .dt-is-active-filter {
background: ${theme.colors.primary.light3}; background: ${theme.colorBgLayout};
:hover { :hover {
background-color: ${theme.colorPrimaryBgHover}; background-color: ${theme.colorPrimaryBgHover};
} }
@@ -379,7 +379,7 @@ export const StyledChartContainer = styled.div<{
.input-wrapper svg { .input-wrapper svg {
pointer-events: none; pointer-events: none;
transform: translate(${theme.sizeUnit * 7}px, ${theme.sizeUnit / 2}px); transform: translate(${theme.sizeUnit * 7}px, ${theme.sizeUnit / 2}px);
color: ${theme.colors.grayscale.base}; color: ${theme.colorText};
} }
.input-wrapper input { .input-wrapper input {
@@ -389,16 +389,16 @@ export const StyledChartContainer = styled.div<{
${theme.sizeUnit * 1.5}px ${theme.sizeUnit * 8}px; ${theme.sizeUnit * 1.5}px ${theme.sizeUnit * 8}px;
line-height: 1.8; line-height: 1.8;
border-radius: ${theme.borderRadius}px; border-radius: ${theme.borderRadius}px;
border: 1px solid ${theme.colors.grayscale.light2}; border: 1px solid ${theme.colorBorderSecondary};
background-color: transparent; background-color: transparent;
outline: none; outline: none;
&:focus { &:focus {
border-color: ${theme.colors.primary.base}; border-color: ${theme.colorPrimary};
} }
&::placeholder { &::placeholder {
color: ${theme.colors.grayscale.light1}; color: ${theme.colorBorder};
} }
} }
`} `}

View File

@@ -169,7 +169,7 @@ export default function PopKPI(props: PopKPIProps) {
const getArrowIndicatorColor = () => { const getArrowIndicatorColor = () => {
if (!comparisonColorEnabled || percentDifferenceNumber === 0) { if (!comparisonColorEnabled || percentDifferenceNumber === 0) {
return theme.colors.grayscale.base; return theme.colorText;
} }
if (percentDifferenceNumber > 0) { if (percentDifferenceNumber > 0) {
@@ -190,7 +190,7 @@ export default function PopKPI(props: PopKPIProps) {
`; `;
const defaultBackgroundColor = theme.colorBgContainer; const defaultBackgroundColor = theme.colorBgContainer;
const defaultTextColor = theme.colors.grayscale.base; const defaultTextColor = theme.colorText;
const { backgroundColor, textColor } = useMemo(() => { const { backgroundColor, textColor } = useMemo(() => {
let bgColor = defaultBackgroundColor; let bgColor = defaultBackgroundColor;
let txtColor = defaultTextColor; let txtColor = defaultTextColor;

View File

@@ -249,7 +249,7 @@ export default function transformProps(
}, },
{ {
offset: 1, offset: 1,
color: theme.colors.grayscale.light5, color: theme.colorBgContainer,
}, },
]), ]),
}, },

View File

@@ -228,7 +228,7 @@ export default function transformProps(
formatter, formatter,
show: showLabels, show: showLabels,
color: theme.colorText, color: theme.colorText,
textBorderColor: theme.colorBgBase, textBorderColor: theme.colorBgContainer,
textBorderWidth: 1, textBorderWidth: 1,
}; };

View File

@@ -220,7 +220,7 @@ export default function transformProps(
name: otherName, name: otherName,
value: otherSum, value: otherSum,
itemStyle: { itemStyle: {
color: theme.colors.grayscale.dark1, color: theme.colorTextSecondary,
opacity: opacity:
filterState.selectedValues && filterState.selectedValues &&
!filterState.selectedValues.includes(otherName) !filterState.selectedValues.includes(otherName)
@@ -368,7 +368,7 @@ export default function transformProps(
const defaultLabel = { const defaultLabel = {
formatter, formatter,
show: showLabels, show: showLabels,
color: theme.colors.grayscale.dark2, color: theme.colorText,
}; };
const chartPadding = getChartPadding( const chartPadding = getChartPadding(
@@ -403,7 +403,7 @@ export default function transformProps(
label: { label: {
show: true, show: true,
fontWeight: 'bold', fontWeight: 'bold',
backgroundColor: theme.colors.grayscale.light5, backgroundColor: theme.colorBgContainer,
}, },
}, },
data: transformedData, data: transformedData,

View File

@@ -74,7 +74,7 @@ export default function transformProps(
}, },
label: { label: {
color: theme.colorText, color: theme.colorText,
textShadow: theme.colorBgBase, textShadow: theme.colorBgContainer,
}, },
})); }));

View File

@@ -276,7 +276,7 @@ export default function transformProps(
} }
const labelProps = { const labelProps = {
color: theme.colorText, color: theme.colorText,
textBorderColor: theme.colorBgBase, textBorderColor: theme.colorBgContainer,
textBorderWidth: 1, textBorderWidth: 1,
}; };
const traverse = ( const traverse = (

View File

@@ -425,7 +425,7 @@ export function transformIntervalAnnotation(
const intervalLabel: SeriesLabelOption = showLabel const intervalLabel: SeriesLabelOption = showLabel
? { ? {
show: true, show: true,
color: theme.colors.grayscale.dark2, color: theme.colorText,
position: 'insideTop', position: 'insideTop',
verticalAlign: 'top', verticalAlign: 'top',
fontWeight: 'bold', fontWeight: 'bold',
@@ -433,19 +433,19 @@ export function transformIntervalAnnotation(
emphasis: { emphasis: {
position: 'insideTop', position: 'insideTop',
verticalAlign: 'top', verticalAlign: 'top',
backgroundColor: theme.colors.grayscale.light5, backgroundColor: theme.colorBgContainer,
}, },
} }
: { : {
show: false, show: false,
color: theme.colors.grayscale.dark2, color: theme.colorText,
// @ts-ignore // @ts-ignore
emphasis: { emphasis: {
fontWeight: 'bold', fontWeight: 'bold',
show: true, show: true,
position: 'insideTop', position: 'insideTop',
verticalAlign: 'top', verticalAlign: 'top',
backgroundColor: theme.colors.grayscale.light5, backgroundColor: theme.colorBgContainer,
}, },
}; };
series.push({ series.push({
@@ -506,25 +506,25 @@ export function transformEventAnnotation(
const eventLabel: SeriesLineLabelOption = showLabel const eventLabel: SeriesLineLabelOption = showLabel
? { ? {
show: true, show: true,
color: theme.colors.grayscale.dark2, color: theme.colorText,
position: 'insideEndTop', position: 'insideEndTop',
fontWeight: 'bold', fontWeight: 'bold',
formatter: (params: CallbackDataParams) => params.name, formatter: (params: CallbackDataParams) => params.name,
// @ts-ignore // @ts-ignore
emphasis: { emphasis: {
backgroundColor: theme.colors.grayscale.light5, backgroundColor: theme.colorBgContainer,
}, },
} }
: { : {
show: false, show: false,
color: theme.colors.grayscale.dark2, color: theme.colorText,
position: 'insideEndTop', position: 'insideEndTop',
// @ts-ignore // @ts-ignore
emphasis: { emphasis: {
formatter: (params: CallbackDataParams) => params.name, formatter: (params: CallbackDataParams) => params.name,
fontWeight: 'bold', fontWeight: 'bold',
show: true, show: true,
backgroundColor: theme.colors.grayscale.light5, backgroundColor: theme.colorBgContainer,
}, },
}; };

View File

@@ -123,7 +123,7 @@ export default function transformProps(
const { columnFormats = {}, currencyFormats = {} } = datasource; const { columnFormats = {}, currencyFormats = {} } = datasource;
const { setDataMask = () => {}, onContextMenu } = hooks; const { setDataMask = () => {}, onContextMenu } = hooks;
const coltypeMapping = getColtypesMapping(queriesData[0]); const coltypeMapping = getColtypesMapping(queriesData[0]);
const BORDER_COLOR = theme.colorBgBase; const BORDER_COLOR = theme.colorBgContainer;
const { const {
colorScheme, colorScheme,
@@ -165,7 +165,7 @@ export default function transformProps(
const treeData = treeBuilder(data, groupbyLabels, metricLabel); const treeData = treeBuilder(data, groupbyLabels, metricLabel);
const labelProps = { const labelProps = {
color: theme.colorText, color: theme.colorText,
borderColor: theme.colorBgBase, borderColor: theme.colorBgContainer,
borderWidth: 1, borderWidth: 1,
}; };
const traverse = (treeNodes: TreeNode[], path: string[]) => const traverse = (treeNodes: TreeNode[], path: string[]) =>
@@ -207,7 +207,7 @@ export default function transformProps(
itemStyle: { itemStyle: {
colorAlpha: OpacityEnum.SemiTransparent, colorAlpha: OpacityEnum.SemiTransparent,
color: theme.colorText, color: theme.colorText,
borderColor: theme.colorBgBase, borderColor: theme.colorBgContainer,
borderWidth: 2, borderWidth: 2,
}, },
label: { label: {

View File

@@ -359,7 +359,7 @@ export default function transformProps(
show: showValue, show: showValue,
formatter: seriesformatter, formatter: seriesformatter,
color: theme.colorText, color: theme.colorText,
borderColor: theme.colorBgBase, borderColor: theme.colorBgContainer,
borderWidth: 1, borderWidth: 1,
}; };
const barSeries: BarSeriesOption[] = [ const barSeries: BarSeriesOption[] = [

View File

@@ -64,12 +64,12 @@ const METRIC_KEY = t('Metric');
const vals = ['value']; const vals = ['value'];
const StyledPlusSquareOutlined = styled(PlusSquareOutlined)` const StyledPlusSquareOutlined = styled(PlusSquareOutlined)`
stroke: ${({ theme }) => theme.colors.grayscale.light2}; stroke: ${({ theme }) => theme.colorBorderSecondary};
stroke-width: 16px; stroke-width: 16px;
`; `;
const StyledMinusSquareOutlined = styled(MinusSquareOutlined)` const StyledMinusSquareOutlined = styled(MinusSquareOutlined)`
stroke: ${({ theme }) => theme.colors.grayscale.light2}; stroke: ${({ theme }) => theme.colorBorderSecondary};
stroke-width: 16px; stroke-width: 16px;
`; `;

View File

@@ -33,7 +33,7 @@ export const Styles = styled.div`
} }
table thead { table thead {
background-color: ${theme.colorBgBase}; background-color: ${theme.colorBgContainer};
position: ${isDashboardEditMode ? 'inherit' : 'sticky'}; position: ${isDashboardEditMode ? 'inherit' : 'sticky'};
top: 0; top: 0;
} }
@@ -62,7 +62,7 @@ export const Styles = styled.div`
table.pvtTable thead th.pvtSubtotalLabel, table.pvtTable thead th.pvtSubtotalLabel,
table.pvtTable tbody tr:last-of-type th, table.pvtTable tbody tr:last-of-type th,
table.pvtTable tbody tr:last-of-type td { table.pvtTable tbody tr:last-of-type td {
border-bottom: 1px solid ${theme.colors.grayscale.light2}; border-bottom: 1px solid ${theme.colorBorderSecondary};
} }
table.pvtTable table.pvtTable
@@ -77,7 +77,7 @@ export const Styles = styled.div`
table.pvtTable tbody tr td:last-of-type, table.pvtTable tbody tr td:last-of-type,
table.pvtTable thead tr th:last-of-type:not(.pvtSubtotalLabel) { table.pvtTable thead tr th:last-of-type:not(.pvtSubtotalLabel) {
border-right: 1px solid ${theme.colors.grayscale.light2}; border-right: 1px solid ${theme.colorBorderSecondary};
} }
table.pvtTable table.pvtTable
@@ -104,9 +104,9 @@ export const Styles = styled.div`
table.pvtTable tbody tr td { table.pvtTable tbody tr td {
color: ${theme.colorPrimaryText}; color: ${theme.colorPrimaryText};
padding: ${theme.sizeUnit}px; padding: ${theme.sizeUnit}px;
background-color: ${theme.colors.grayscale.light5}; background-color: ${theme.colorBgContainer};
border-top: 1px solid ${theme.colors.grayscale.light2}; border-top: 1px solid ${theme.colorBorderSecondary};
border-left: 1px solid ${theme.colors.grayscale.light2}; border-left: 1px solid ${theme.colorBorderSecondary};
vertical-align: top; vertical-align: top;
text-align: right; text-align: right;
} }

View File

@@ -41,7 +41,7 @@ export default styled.div`
thead > tr > th { thead > tr > th {
padding-right: 0; padding-right: 0;
position: relative; position: relative;
background-color: ${theme.colorBgBase}; background-color: ${theme.colorBgContainer};
text-align: left; text-align: left;
border-bottom: 2px solid ${theme.colorSplit}; border-bottom: 2px solid ${theme.colorSplit};
color: ${theme.colorText}; color: ${theme.colorText};
@@ -154,7 +154,7 @@ export default styled.div`
.dt-pagination .pagination > li > a, .dt-pagination .pagination > li > a,
.dt-pagination .pagination > li > span { .dt-pagination .pagination > li > span {
background-color: ${theme.colorBgBase}; background-color: ${theme.colorBgContainer};
color: ${theme.colorText}; color: ${theme.colorText};
border-color: ${theme.colorBorderSecondary}; border-color: ${theme.colorBorderSecondary};
} }

View File

@@ -106,7 +106,7 @@ class WordCloud extends PureComponent<FullWordCloudProps, WordCloudState> {
text: 'Text', text: 'Text',
}, },
defaultEncoding: { defaultEncoding: {
color: { value: this.props.theme.colors.grayscale.dark2 }, color: { value: this.props.theme.colorTextBase },
fontFamily: { value: this.props.theme.fontFamily }, fontFamily: { value: this.props.theme.fontFamily },
fontSize: { value: 20 }, fontSize: { value: 20 },
fontWeight: { value: 'bold' }, fontWeight: { value: 'bold' },

View File

@@ -33,7 +33,7 @@ export const verticalAlign = css`
export const StyledTooltip = styled(IconTooltip)` export const StyledTooltip = styled(IconTooltip)`
padding-right: ${({ theme }) => theme.sizeUnit * 2}px; padding-right: ${({ theme }) => theme.sizeUnit * 2}px;
span { span {
color: ${({ theme }) => theme.colors.grayscale.base}; color: ${({ theme }) => theme.colorText};
&: hover { &: hover {
color: ${({ theme }) => theme.colorPrimary}; color: ${({ theme }) => theme.colorPrimary};
} }

View File

@@ -64,7 +64,7 @@ const Styles = styled.span`
span[role='img']:not([aria-label='down']) { span[role='img']:not([aria-label='down']) {
display: flex; display: flex;
margin: 0; margin: 0;
color: ${({ theme }) => theme.colors.grayscale.base}; color: ${({ theme }) => theme.colorText};
svg { svg {
vertical-align: -${({ theme }) => theme.sizeUnit * 1.25}px; vertical-align: -${({ theme }) => theme.sizeUnit * 1.25}px;
margin: 0; margin: 0;

View File

@@ -125,7 +125,7 @@ const SqlEditorTabHeader: FC<Props> = ({ queryEditor }) => {
[QueryState.TimedOut]: theme.colorError, [QueryState.TimedOut]: theme.colorError,
}; };
return statusColors[state] || theme.colors.grayscale.light2; return statusColors[state] || theme.colorBorderSecondary;
}; };
return ( return (
<TabTitleWrapper> <TabTitleWrapper>

View File

@@ -168,7 +168,7 @@ const MessageSpan = styled.span`
text-align: center; text-align: center;
margin: ${({ theme }) => theme.sizeUnit * 4}px auto; margin: ${({ theme }) => theme.sizeUnit * 4}px auto;
width: fit-content; width: fit-content;
color: ${({ theme }) => theme.colors.grayscale.base}; color: ${({ theme }) => theme.colorText};
`; `;
class Chart extends PureComponent<ChartProps, {}> { class Chart extends PureComponent<ChartProps, {}> {

View File

@@ -224,11 +224,7 @@ const ChartContextMenu = (
{t('Add cross-filter')} {t('Add cross-filter')}
<MenuItemTooltip <MenuItemTooltip
title={crossFilteringTooltipTitle} title={crossFilteringTooltipTitle}
color={ color={!isCrossFilterDisabled ? theme.colorText : undefined}
!isCrossFilterDisabled
? theme.colors.grayscale.base
: undefined
}
/> />
</div> </div>
)} )}

View File

@@ -123,7 +123,7 @@ export default function TableControls({
> >
<RowCountLabel loading={loading && !totalCount} rowcount={totalCount} /> <RowCountLabel loading={loading && !totalCount} rowcount={totalCount} />
<Icons.ReloadOutlined <Icons.ReloadOutlined
iconColor={theme.colors.grayscale.light1} iconColor={theme.colorBorder}
iconSize="l" iconSize="l"
aria-label={t('Reload')} aria-label={t('Reload')}
role="button" role="button"

View File

@@ -70,7 +70,7 @@ const HeaderAction = styled.div`
box-shadow: 0 0 2px var(--ag-chip-border-color); box-shadow: 0 0 2px var(--ag-chip-border-color);
border-radius: 50%; border-radius: 50%;
&:hover { &:hover {
box-shadow: 0 0 4px ${({ theme }) => theme.colors.grayscale.light1}; box-shadow: 0 0 4px ${({ theme }) => theme.colorBorder};
} }
} }
`; `;

View File

@@ -150,7 +150,7 @@ export function GridTable<RecordType extends object>({
--ag-font-family: ${theme.fontFamily}; --ag-font-family: ${theme.fontFamily};
--ag-font-size: ${theme.fontSize}px; --ag-font-size: ${theme.fontSize}px;
--ag-row-height: ${rowHeight}px; --ag-row-height: ${rowHeight}px;
--ag-background-color: ${theme.colorBgBase}; --ag-background-color: ${theme.colorBgContainer};
--ag-foreground-color: ${theme.colorText}; --ag-foreground-color: ${theme.colorText};
--ag-header-background-color: ${theme.colorBgElevated}; --ag-header-background-color: ${theme.colorBgElevated};
--ag-header-foreground-color: ${theme.colorTextHeading}; --ag-header-foreground-color: ${theme.colorTextHeading};

View File

@@ -53,7 +53,7 @@ const StyledCrossLinks = styled.div`
.count { .count {
cursor: pointer; cursor: pointer;
color: ${theme.colors.grayscale.base}; color: ${theme.colorText};
font-weight: ${theme.fontWeightStrong}; font-weight: ${theme.fontWeightStrong};
} }
} }

View File

@@ -30,7 +30,7 @@ export type CrossLinksTooltipProps = {
const StyledLinkedTooltip = styled.div` const StyledLinkedTooltip = styled.div`
.link { .link {
color: ${({ theme }) => theme.colors.grayscale.light5}; color: ${({ theme }) => theme.colorBgContainer};
display: block; display: block;
text-decoration: underline; text-decoration: underline;
} }

View File

@@ -100,10 +100,7 @@ function SearchFilter(
onPressEnter={handleSubmit} onPressEnter={handleSubmit}
onBlur={handleSubmit} onBlur={handleSubmit}
prefix={ prefix={
<Icons.SearchOutlined <Icons.SearchOutlined iconColor={theme.colorBorder} iconSize="l" />
iconColor={theme.colors.grayscale.light1}
iconSize="l"
/>
} }
/> />
</FilterContainer> </FilterContainer>

View File

@@ -88,7 +88,7 @@ const ListViewStyles = styled.div`
.row-count-container { .row-count-container {
margin-top: ${theme.sizeUnit * 2}px; margin-top: ${theme.sizeUnit * 2}px;
color: ${theme.colors.grayscale.base}; color: ${theme.colorText};
} }
`} `}
`; `;
@@ -160,7 +160,7 @@ const ViewModeContainer = styled.div`
} }
.active { .active {
background-color: ${theme.colors.grayscale.base}; background-color: ${theme.colorText};
svg { svg {
color: ${theme.colorBgLayout}; color: ${theme.colorBgLayout};

View File

@@ -63,7 +63,7 @@ const StyledToastPresenter = styled.div<VisualProps>(
} }
.toast > button { .toast > button {
color: ${theme.colors.grayscale.light5}; color: ${theme.colorBgContainer};
opacity: 1; opacity: 1;
} }

View File

@@ -68,7 +68,7 @@ const TableSelectorWrapper = styled.div`
} }
.table-length { .table-length {
color: ${theme.colors.grayscale.light1}; color: ${theme.colorBorder};
} }
.select { .select {

View File

@@ -96,7 +96,7 @@ const MetadataItem: FC<{
<span <span
css={(theme: Theme) => css` css={(theme: Theme) => css`
margin-right: ${theme.sizeUnit * 4}px; margin-right: ${theme.sizeUnit * 4}px;
color: ${theme.colors.grayscale.base}; color: ${theme.colorText};
`} `}
> >
{label} {label}
@@ -214,7 +214,7 @@ const AddSliceCard: FC<{
color: ${theme.colorText}; color: ${theme.colorText};
&:hover { &:hover {
//background: ${theme.colors.grayscale.light4}; //background: ${theme.colorBgContainer};
} }
opacity: ${isSelected ? 0.4 : 'unset'}; opacity: ${isSelected ? 0.4 : 'unset'};

View File

@@ -53,8 +53,8 @@ const BuilderComponentPane = ({ topOffset = 0 }) => (
position: absolute; position: absolute;
height: 100%; height: 100%;
width: ${BUILDER_PANE_WIDTH}px; width: ${BUILDER_PANE_WIDTH}px;
box-shadow: -4px 0 4px 0 ${rgba(theme.colors.grayscale.dark2, 0.1)}; box-shadow: -4px 0 4px 0 ${rgba(theme.colorText, 0.1)};
background-color: ${theme.colorBgBase}; background-color: ${theme.colorBgContainer};
`} `}
> >
<Tabs <Tabs

View File

@@ -140,7 +140,7 @@ const DashboardContentWrapper = styled.div`
/* drop shadow for top-level tabs only */ /* drop shadow for top-level tabs only */
& .dashboard-component-tabs { & .dashboard-component-tabs {
box-shadow: 0 ${theme.sizeUnit}px ${theme.sizeUnit}px 0 box-shadow: 0 ${theme.sizeUnit}px ${theme.sizeUnit}px 0
${addAlpha(theme.colors.grayscale.dark2, 0.1)}; ${addAlpha(theme.colorText, 0.1)};
padding-left: ${theme.sizeUnit * padding-left: ${theme.sizeUnit *
2}px; /* note this is added to tab-level padding, to match header */ 2}px; /* note this is added to tab-level padding, to match header */
} }

View File

@@ -44,8 +44,8 @@ const StyledDiv = styled.div`
} }
& .empty-droptarget:before { & .empty-droptarget:before {
display: block; display: block;
border-color: ${theme.colors.primary.light1}; border-color: ${theme.colorFillQuaternary};
background-color: ${theme.colors.primary.light3}; background-color: ${theme.colorBgLayout};
} }
& .grid-row:after { & .grid-row:after {
border-style: hidden; border-style: hidden;

View File

@@ -175,7 +175,7 @@ const DetailsPanelPopover = ({
return ( return (
<Popover <Popover
color={`${theme.colors.grayscale.dark2}cc`} color={`${theme.colorTextBase}cc`}
content={content} content={content}
open={popoverVisible} open={popoverVisible}
onOpenChange={handleVisibility} onOpenChange={handleVisibility}

View File

@@ -21,8 +21,8 @@ import { css, styled } from '@superset-ui/core';
export const Pill = styled.div` export const Pill = styled.div`
${({ theme }) => css` ${({ theme }) => css`
display: flex; display: flex;
color: ${theme.colors.grayscale.light5}; color: ${theme.colorBgContainer};
background: ${theme.colors.grayscale.base}; background: ${theme.colorText};
border-radius: 1em; border-radius: 1em;
vertical-align: text-top; vertical-align: text-top;
padding: ${theme.sizeUnit}px ${theme.sizeUnit * 2}px; padding: ${theme.sizeUnit}px ${theme.sizeUnit * 2}px;
@@ -36,7 +36,7 @@ export const Pill = styled.div`
svg { svg {
position: relative; position: relative;
color: ${theme.colors.grayscale.light5}; color: ${theme.colorBgContainer};
width: 1em; width: 1em;
height: 1em; height: 1em;
display: inline-block; display: inline-block;
@@ -115,7 +115,7 @@ export const FiltersDetailsContainer = styled.div`
max-width: 300px; max-width: 300px;
overflow-x: hidden; overflow-x: hidden;
color: ${theme.colors.grayscale.light5}; color: ${theme.colorBgContainer};
`} `}
`; `;
@@ -129,7 +129,7 @@ export const Separator = styled.div`
${({ theme }) => css` ${({ theme }) => css`
width: 100%; width: 100%;
height: 1px; height: 1px;
background-color: ${theme.colors.grayscale.light1}; background-color: ${theme.colorBorder};
margin: ${theme.sizeUnit * 4}px 0; margin: ${theme.sizeUnit * 4}px 0;
`} `}
`; `;

View File

@@ -63,14 +63,14 @@ const StyledFilterCount = styled.div`
margin-right: ${theme.sizeUnit}px; margin-right: ${theme.sizeUnit}px;
padding-left: ${theme.sizeUnit * 2}px; padding-left: ${theme.sizeUnit * 2}px;
padding-right: ${theme.sizeUnit * 2}px; padding-right: ${theme.sizeUnit * 2}px;
background: ${theme.colors.grayscale.light4}; background: ${theme.colorBgContainer};
border-radius: 4px; border-radius: 4px;
height: 100%; height: 100%;
.anticon { .anticon {
vertical-align: middle; vertical-align: middle;
color: ${theme.colors.grayscale.base}; color: ${theme.colorText};
&:hover { &:hover {
color: ${theme.colors.grayscale.light1}; color: ${theme.colorBorder};
} }
} }

View File

@@ -130,18 +130,18 @@ const StyledUndoRedoButton = styled(Button)`
`; `;
const undoRedoStyle = theme => css` const undoRedoStyle = theme => css`
color: ${theme.colors.grayscale.light1}; color: ${theme.colorBorder};
&:hover { &:hover {
color: ${theme.colors.grayscale.base}; color: ${theme.colorText};
} }
`; `;
const undoRedoEmphasized = theme => css` const undoRedoEmphasized = theme => css`
color: ${theme.colors.grayscale.base}; color: ${theme.colorText};
`; `;
const undoRedoDisabled = theme => css` const undoRedoDisabled = theme => css`
color: ${theme.colors.grayscale.light2}; color: ${theme.colorBorderSecondary};
`; `;
const saveBtnStyle = theme => css` const saveBtnStyle = theme => css`

View File

@@ -29,7 +29,7 @@ const StyledDiv = styled.div`
display: flex; display: flex;
align-items: center; align-items: center;
cursor: pointer; cursor: pointer;
color: ${({ theme }) => theme.colors.grayscale.base}; color: ${({ theme }) => theme.colorText};
&:hover { &:hover {
color: ${({ theme }) => theme.colorPrimary}; color: ${({ theme }) => theme.colorPrimary};
} }

View File

@@ -58,7 +58,7 @@ const StackableHeader = styled(Button)<{ top: number }>`
${({ theme, top }) => ` ${({ theme, top }) => `
position: sticky; position: sticky;
top: ${top}px; top: ${top}px;
background-color: ${theme.colors.grayscale.light5}; background-color: ${theme.colorBgContainer};
margin: 0px; margin: 0px;
padding: 8px 4px; padding: 8px 4px;
z-index: 1; z-index: 1;

View File

@@ -35,7 +35,7 @@ const DragHandleContainer = styled.div<{ position: 'left' | 'top' }>`
transform: rotate(90deg); transform: rotate(90deg);
`} `}
& path { & path {
fill: ${theme.colors.grayscale.base}; fill: ${theme.colorText};
} }
`} `}
`; `;

View File

@@ -227,7 +227,7 @@ const ScopeSelector = styled.div`
border-radius: ${theme.borderRadius}px; border-radius: ${theme.borderRadius}px;
margin-top: ${theme.sizeUnit * -2}px; margin-top: ${theme.sizeUnit * -2}px;
box-shadow: inset 0 0 0 2px ${theme.colorBorder}; box-shadow: inset 0 0 0 2px ${theme.colorBorder};
background: ${theme.colors.grayscale.light3}; background: ${theme.colorFill};
} }
} }
@@ -309,7 +309,7 @@ const ActionsContainer = styled.div`
${({ theme }) => ` ${({ theme }) => `
height: ${theme.sizeUnit * 16}px; height: ${theme.sizeUnit * 16}px;
border-top: ${theme.sizeUnit / 4}px solid ${theme.colors.primary.light3}; border-top: ${theme.sizeUnit / 4}px solid ${theme.colorBgLayout};
padding: ${theme.sizeUnit * 6}px; padding: ${theme.sizeUnit * 6}px;
margin: 0 0 0 ${-theme.sizeUnit * 6}px; margin: 0 0 0 ${-theme.sizeUnit * 6}px;
text-align: right; text-align: right;

View File

@@ -47,7 +47,7 @@ const DividerLine = styled.div`
content: ''; content: '';
height: 1px; height: 1px;
width: 100%; width: 100%;
background-color: ${theme.colors.grayscale.light2}; background-color: ${theme.colorBorderSecondary};
display: block; display: block;
} }

View File

@@ -79,7 +79,7 @@ const defaultProps = {
const StyledTabsContainer = styled.div` const StyledTabsContainer = styled.div`
${({ theme }) => css` ${({ theme }) => css`
width: 100%; width: 100%;
background-color: ${theme.colorBgBase}; background-color: ${theme.colorBgContainer};
.dashboard-component-tabs-content { .dashboard-component-tabs-content {
min-height: ${theme.sizeUnit * 12}px; min-height: ${theme.sizeUnit * 12}px;

View File

@@ -40,10 +40,10 @@ const NewComponent = styled.div`
flex-wrap: nowrap; flex-wrap: nowrap;
align-items: center; align-items: center;
padding: ${theme.sizeUnit * 4}px; padding: ${theme.sizeUnit * 4}px;
background: ${theme.colors.grayscale.light5}; background: ${theme.colorBgContainer};
cursor: move; cursor: move;
&:not(.static):hover { &:not(.static):hover {
background: ${theme.colors.grayscale.light4}; background: ${theme.colorBgContainer};
} }
`} `}
`; `;

View File

@@ -47,7 +47,7 @@ const BackgroundStyleOption = styled.div`
padding-left: 0; padding-left: 0;
background: transparent; background: transparent;
&:before { &:before {
background: ${theme.colors.grayscale.light5}; background: ${theme.colorBgContainer};
border: 1px solid ${theme.colorBorder}; border: 1px solid ${theme.colorBorder};
} }
} }

View File

@@ -75,8 +75,8 @@ const PopoverMenuStyles = styled.div`
top: -42px; top: -42px;
height: ${theme.sizeUnit * 10}px; height: ${theme.sizeUnit * 10}px;
padding: 0 ${theme.sizeUnit * 4}px; padding: 0 ${theme.sizeUnit * 4}px;
background: ${theme.colors.grayscale.light5}; background: ${theme.colorBgContainer};
box-shadow: 0 1px 2px 1px ${addAlpha(theme.colors.grayscale.dark2, 0.35)}; box-shadow: 0 1px 2px 1px ${addAlpha(theme.colorText, 0.35)};
font-size: ${theme.fontSize}px; font-size: ${theme.fontSize}px;
cursor: default; cursor: default;
z-index: 3000; z-index: 3000;
@@ -93,7 +93,7 @@ const PopoverMenuStyles = styled.div`
content: ''; content: '';
width: 1px; width: 1px;
height: 100%; height: 100%;
background: ${theme.colors.grayscale.light2}; background: ${theme.colorBorderSecondary};
margin: 0 ${theme.sizeUnit * 4}px; margin: 0 ${theme.sizeUnit * 4}px;
} }
`} `}

View File

@@ -89,6 +89,13 @@ const horizontalStyle = (theme: SupersetTheme) => css`
text-transform: capitalize; text-transform: capitalize;
font-weight: ${theme.fontWeightNormal}; font-weight: ${theme.fontWeightNormal};
} }
& > .filter-apply-button {
&[disabled],
&[disabled]:hover {
color: ${theme.colorBorder};
background: ${theme.colorFill};
}
}
`; `;
const ButtonsContainer = styled.div<{ isVertical: boolean; width: number }>` const ButtonsContainer = styled.div<{ isVertical: boolean; width: number }>`

View File

@@ -103,7 +103,7 @@ const CrossFilter = (props: {
margin-bottom: ${theme.sizeUnit * 4}px; margin-bottom: ${theme.sizeUnit * 4}px;
margin-top: ${theme.sizeUnit * 4}px; margin-top: ${theme.sizeUnit * 4}px;
`} `}
background: ${theme.colors.grayscale.light2}; background: ${theme.colorBorderSecondary};
`} `}
/> />
)} )}

View File

@@ -33,7 +33,7 @@ const StyledCrossFilterTitle = styled.div`
${({ theme }) => ` ${({ theme }) => `
display: flex; display: flex;
font-size: ${theme.fontSizeSM}px; font-size: ${theme.fontSizeSM}px;
color: ${theme.colors.grayscale.base}; color: ${theme.colorText};
vertical-align: middle; vertical-align: middle;
align-items: center; align-items: center;
`} `}
@@ -42,13 +42,13 @@ const StyledCrossFilterTitle = styled.div`
const StyledIconSearch = styled(Icons.SearchOutlined)` const StyledIconSearch = styled(Icons.SearchOutlined)`
${({ theme }) => ` ${({ theme }) => `
& > span.anticon.anticon-search { & > span.anticon.anticon-search {
color: ${theme.colors.grayscale.light1}; color: ${theme.colorBorder};
margin-left: ${theme.sizeUnit}px; margin-left: ${theme.sizeUnit}px;
transition: 0.3s; transition: 0.3s;
vertical-align: middle; vertical-align: middle;
line-height: 0; line-height: 0;
&:hover { &:hover {
color: ${theme.colors.grayscale.base}; color: ${theme.colorText};
} }
} }
`} `}

View File

@@ -71,7 +71,7 @@ const ScopingTitle = ({
> >
{label} {label}
<Icons.DeleteOutlined <Icons.DeleteOutlined
iconColor={theme.colors.grayscale.light3} iconColor={theme.colorFill}
iconSize="xl" iconSize="xl"
onClick={(event: React.MouseEvent<HTMLElement>) => { onClick={(event: React.MouseEvent<HTMLElement>) => {
event.stopPropagation(); event.stopPropagation();
@@ -150,7 +150,7 @@ export const ChartsScopingListPanel = ({
css={css` css={css`
width: 100%; width: 100%;
height: 1px; height: 1px;
background-color: ${theme.colors.grayscale.light3}; background-color: ${theme.colorFill};
margin: ${theme.sizeUnit * 3}px 0; margin: ${theme.sizeUnit * 3}px 0;
`} `}
/> />

View File

@@ -51,7 +51,7 @@ interface ScopingTreePanelProps {
const InfoText = styled.div` const InfoText = styled.div`
${({ theme }) => css` ${({ theme }) => css`
font-size: ${theme.fontSizeSM}px; font-size: ${theme.fontSizeSM}px;
color: ${theme.colors.grayscale.base}; color: ${theme.colorText};
margin-bottom: ${theme.sizeUnit * 7}px; margin-bottom: ${theme.sizeUnit * 7}px;
`} `}
`; `;

View File

@@ -130,7 +130,7 @@ const HorizontalOverflowDivider = ({
${truncationCSS}; ${truncationCSS};
display: block; display: block;
font-size: ${theme.fontSizeSM}px; font-size: ${theme.fontSizeSM}px;
color: ${theme.colors.grayscale.base}; color: ${theme.colorText};
margin: ${theme.sizeUnit}px 0 0 0; margin: ${theme.sizeUnit}px 0 0 0;
`} `}
> >

View File

@@ -35,8 +35,8 @@ const HorizontalBar = styled.div`
padding: ${theme.sizeUnit * 3}px ${theme.sizeUnit * 2}px ${ padding: ${theme.sizeUnit * 3}px ${theme.sizeUnit * 2}px ${
theme.sizeUnit * 3 theme.sizeUnit * 3
}px ${theme.sizeUnit * 4}px; }px ${theme.sizeUnit * 4}px;
background: ${theme.colorBgBase}; background: ${theme.colorBgContainer};
box-shadow: inset 0px -2px 2px -1px ${theme.colors.grayscale.light2}; box-shadow: inset 0px -2px 2px -1px ${theme.colorBorderSecondary};
`} `}
`; `;
@@ -57,7 +57,7 @@ const HorizontalBarContent = styled.div`
const FilterBarEmptyStateContainer = styled.div` const FilterBarEmptyStateContainer = styled.div`
${({ theme }) => ` ${({ theme }) => `
font-weight: ${theme.fontWeightStrong}; font-weight: ${theme.fontWeightStrong};
color: ${theme.colors.grayscale.base}; color: ${theme.colorText};
font-size: ${theme.fontSizeSM}px; font-size: ${theme.fontSizeSM}px;
padding-left: ${theme.sizeUnit * 2}px; padding-left: ${theme.sizeUnit * 2}px;
`} `}

View File

@@ -63,14 +63,14 @@ const Bar = styled.div<{ width: number }>`
flex-direction: column; flex-direction: column;
flex-grow: 1; flex-grow: 1;
width: ${width}px; width: ${width}px;
background: ${theme.colors.grayscale.light5}; background: ${theme.colorBgContainer};
border-right: 1px solid ${theme.colorSplit}; border-right: 1px solid ${theme.colorSplit};
border-bottom: 1px solid ${theme.colorSplit}; border-bottom: 1px solid ${theme.colorSplit};
min-height: 100%; min-height: 100%;
display: none; display: none;
&.open { &.open {
display: flex; display: flex;
background-color: ${theme.colorBgBase}; background-color: ${theme.colorBgContainer};
} }
`} `}
`; `;

View File

@@ -101,7 +101,7 @@ export const DependenciesRow = memo(({ filter }: FilterCardRowProps) => {
> >
<Icons.InfoCircleOutlined <Icons.InfoCircleOutlined
iconSize="m" iconSize="m"
iconColor={theme.colors.grayscale.light1} iconColor={theme.colorBorder}
css={css` css={css`
margin-left: ${theme.sizeUnit}px; margin-left: ${theme.sizeUnit}px;
`} `}

View File

@@ -73,7 +73,7 @@ export const NameRow = ({
> >
<Icons.EditOutlined <Icons.EditOutlined
iconSize="l" iconSize="l"
iconColor={theme.colors.grayscale.light1} iconColor={theme.colorBorder}
css={() => css` css={() => css`
cursor: pointer; cursor: pointer;
`} `}

View File

@@ -41,7 +41,7 @@ export const Row = styled.div`
export const RowLabel = styled.span` export const RowLabel = styled.span`
${({ theme }) => css` ${({ theme }) => css`
color: ${theme.colors.grayscale.base}; color: ${theme.colorText};
padding-right: ${theme.sizeUnit * 4}px; padding-right: ${theme.sizeUnit * 4}px;
margin-right: auto; margin-right: auto;
white-space: nowrap; white-space: nowrap;

View File

@@ -57,7 +57,7 @@ const DeleteFilter = styled(Icons.DeleteOutlined)`
${({ theme }) => ` ${({ theme }) => `
cursor: pointer; cursor: pointer;
margin-left: ${theme.sizeUnit * 2}px; margin-left: ${theme.sizeUnit * 2}px;
color: ${theme.colors.grayscale.base}; color: ${theme.colorText};
&:hover { &:hover {
color: ${theme.colorText}; color: ${theme.colorText};
} }
@@ -79,7 +79,7 @@ const RowPanel = styled.div`
const Label = styled.div` const Label = styled.div`
font-size: ${({ theme }) => theme.fontSizeSM}px; font-size: ${({ theme }) => theme.fontSizeSM}px;
color: ${({ theme }) => theme.colors.grayscale.base}; color: ${({ theme }) => theme.colorText};
margin-bottom: ${({ theme }) => theme.sizeUnit}px; margin-bottom: ${({ theme }) => theme.sizeUnit}px;
`; `;

View File

@@ -183,7 +183,7 @@ const FilterTypeInfo = styled.div<{ expanded: boolean }>`
${({ theme, expanded }) => ` ${({ theme, expanded }) => `
width: ${expanded ? '49%' : `${FORM_ITEM_WIDTH}px`}; width: ${expanded ? '49%' : `${FORM_ITEM_WIDTH}px`};
font-size: ${theme.fontSizeSM}px; font-size: ${theme.fontSizeSM}px;
color: ${theme.colors.grayscale.light1}; color: ${theme.colorBorder};
margin: margin:
${theme.sizeUnit * 2}px ${theme.sizeUnit * 2}px
0px 0px

View File

@@ -27,7 +27,7 @@ const RemovedContent = styled.div`
text-align: center; text-align: center;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
color: ${({ theme }) => theme.colors.grayscale.base}; color: ${({ theme }) => theme.colorText};
`; `;
type RemovedFilterProps = { type RemovedFilterProps = {

View File

@@ -740,7 +740,7 @@ function FiltersConfigModal({
<StyledExpandButtonWrapper> <StyledExpandButtonWrapper>
<ToggleIcon <ToggleIcon
iconSize="l" iconSize="l"
iconColor={theme.colors.grayscale.dark2} iconColor={theme.colorTextBase}
onClick={toggleExpand} onClick={toggleExpand}
/> />
</StyledExpandButtonWrapper> </StyledExpandButtonWrapper>

View File

@@ -31,7 +31,7 @@ const useFilterFocusHighlightStyles = (chartId: number) => {
const focusedChartStyles = useMemo( const focusedChartStyles = useMemo(
() => ({ () => ({
borderColor: theme.colors.primary.light2, borderColor: theme.colorPrimaryBg,
opacity: 1, opacity: 1,
boxShadow: `0px 0px ${theme.sizeUnit * 2}px ${theme.colorPrimary}`, boxShadow: `0px 0px ${theme.sizeUnit * 2}px ${theme.colorPrimary}`,
pointerEvents: 'auto', pointerEvents: 'auto',

View File

@@ -125,8 +125,8 @@ const actionButtonsContainerStyles = (theme: SupersetTheme) => css`
padding: ${theme.sizeUnit * 4}px; padding: ${theme.sizeUnit * 4}px;
z-index: 999; z-index: 999;
background: linear-gradient( background: linear-gradient(
${rgba(theme.colorBgBase, 0)}, ${rgba(theme.colorBgContainer, 0)},
${theme.colorBgBase} 35% ${theme.colorBgContainer} 35%
); );
& > button { & > button {

View File

@@ -42,7 +42,7 @@ import { prepareCopyToClipboardTabularData } from 'src/utils/common';
import { getTimeColumns, setTimeColumns } from './utils'; import { getTimeColumns, setTimeColumns } from './utils';
export const CellNull = styled('span')` export const CellNull = styled('span')`
color: ${({ theme }) => theme.colors.grayscale.light1}; color: ${({ theme }) => theme.colorBorder};
`; `;
export const CopyButton = styled(Button)` export const CopyButton = styled(Button)`
@@ -161,7 +161,7 @@ const FormatPickerContainer = styled.div`
const FormatPickerLabel = styled.span` const FormatPickerLabel = styled.span`
font-size: ${({ theme }) => theme.fontSizeSM}px; font-size: ${({ theme }) => theme.fontSizeSM}px;
color: ${({ theme }) => theme.colors.grayscale.base}; color: ${({ theme }) => theme.colorText};
margin-bottom: ${({ theme }) => theme.sizeUnit * 2}px; margin-bottom: ${({ theme }) => theme.sizeUnit * 2}px;
`; `;
@@ -216,7 +216,7 @@ const DataTableTemporalHeaderCell = ({
> >
<Icons.SettingOutlined <Icons.SettingOutlined
iconSize="m" iconSize="m"
iconColor={theme.colors.grayscale.light1} iconColor={theme.colorBorder}
css={{ marginRight: `${theme.sizeUnit}px` }} css={{ marginRight: `${theme.sizeUnit}px` }}
onClick={(e: React.MouseEvent<HTMLElement>) => e.stopPropagation()} onClick={(e: React.MouseEvent<HTMLElement>) => e.stopPropagation()}
/> />

View File

@@ -189,7 +189,7 @@ export const DataTablesPane = ({
)} )}
</TableControlsWrapper> </TableControlsWrapper>
); );
}, [handleCollapseChange, panelOpen, theme.colors.grayscale.base]); }, [handleCollapseChange, panelOpen, theme.colorText]);
const queryResultsPanes = useResultsPane({ const queryResultsPanes = useResultsPane({
errorMessage, errorMessage,

View File

@@ -87,7 +87,7 @@ const DatasourceContainer = styled.div`
.field-length { .field-length {
margin-bottom: ${theme.sizeUnit * 2}px; margin-bottom: ${theme.sizeUnit * 2}px;
font-size: ${theme.fontSizeSM}px; font-size: ${theme.fontSizeSM}px;
color: ${theme.colors.grayscale.light1}; color: ${theme.colorBorder};
} }
.form-control.input-md { .form-control.input-md {
display: inline-flex; display: inline-flex;
@@ -97,7 +97,7 @@ const DatasourceContainer = styled.div`
} }
.type-label { .type-label {
font-size: ${theme.fontSizeSM}px; font-size: ${theme.fontSizeSM}px;
color: ${theme.colors.grayscale.base}; color: ${theme.colorText};
} }
.Control { .Control {
padding-bottom: 0; padding-bottom: 0;

View File

@@ -38,18 +38,23 @@ export const RunQueryButton = ({
errorMessage, errorMessage,
isNewChart, isNewChart,
canStopQuery, canStopQuery,
chartIsStale,
}: RunQueryButtonProps) => { }: RunQueryButtonProps) => {
const theme = useTheme(); const theme = useTheme();
return loading ? ( return loading ? (
<Button onClick={onStop} buttonStyle="danger" disabled={!canStopQuery}> <Button
<Icons.Square iconSize="xs" iconColor={theme.colors.primary.light5} /> icon={
<Icons.Square iconSize="xs" iconColor={theme.colorFillQuaternary} />
}
onClick={onStop}
buttonStyle="danger"
disabled={!canStopQuery}
>
{t('Stop')} {t('Stop')}
</Button> </Button>
) : ( ) : (
<Button <Button
onClick={onQuery} onClick={onQuery}
buttonStyle={chartIsStale ? 'primary' : 'secondary'} buttonStyle="primary"
disabled={!!errorMessage} disabled={!!errorMessage}
data-test="run-query-button" data-test="run-query-button"
> >

Some files were not shown because too many files have changed in this diff Show More