mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
chore: Removes hard-coded colors from the plugins - iteration 1 (#19923)
* chore: Removes hard-coded colors from the plugins - iteration 1 * Fixes lint errors * Fixes tests
This commit is contained in:
committed by
GitHub
parent
d0b8b1e97d
commit
b7cff8335b
@@ -55,9 +55,18 @@ const PivotTableWrapper = styled.div`
|
||||
`;
|
||||
|
||||
const METRIC_KEY = 'metric';
|
||||
const iconStyle = { stroke: 'black', strokeWidth: '16px' };
|
||||
const vals = ['value'];
|
||||
|
||||
const StyledPlusSquareOutlined = styled(PlusSquareOutlined)`
|
||||
stroke: ${({ theme }) => theme.colors.grayscale.light2};
|
||||
stroke-width: 16px;
|
||||
`;
|
||||
|
||||
const StyledMinusSquareOutlined = styled(MinusSquareOutlined)`
|
||||
stroke: ${({ theme }) => theme.colors.grayscale.light2};
|
||||
stroke-width: 16px;
|
||||
`;
|
||||
|
||||
const aggregatorsFactory = (formatter: NumberFormatter) => ({
|
||||
Count: aggregatorTemplates.count(formatter),
|
||||
'Count Unique Values': aggregatorTemplates.countUnique(formatter),
|
||||
@@ -345,8 +354,8 @@ export default function PivotTableChart(props: PivotTableProps) {
|
||||
() => ({
|
||||
colSubtotalDisplay: { displayOnTop: colSubtotalPosition },
|
||||
rowSubtotalDisplay: { displayOnTop: rowSubtotalPosition },
|
||||
arrowCollapsed: <PlusSquareOutlined style={iconStyle} />,
|
||||
arrowExpanded: <MinusSquareOutlined style={iconStyle} />,
|
||||
arrowCollapsed: <StyledPlusSquareOutlined />,
|
||||
arrowExpanded: <StyledMinusSquareOutlined />,
|
||||
}),
|
||||
[colSubtotalPosition, rowSubtotalPosition],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user