Skip to content

Commit

Permalink
initial commit (apache#15551)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdotson authored and cccs-RyanS committed Dec 17, 2021
1 parent 1feb90d commit 650f0c2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions superset-frontend/src/components/Tabs/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import React from 'react';
import { css, styled } from '@superset-ui/core';
import AntDTabs, { TabsProps as AntDTabsProps } from 'antd/lib/tabs';
import Icon from 'src/components/Icon';
import Icons from 'src/components/Icons';

export interface TabsProps extends AntDTabsProps {
fullWidth?: boolean;
Expand Down Expand Up @@ -119,6 +119,9 @@ const StyledEditableTabs = styled(StyledTabs)`
`}
`;

const StyledCancelXIcon = styled(Icons.CancelX)`
color: ${({ theme }) => theme.colors.grayscale.base};
`;
export const EditableTabs = Object.assign(StyledEditableTabs, {
TabPane: StyledTabPane,
});
Expand All @@ -130,9 +133,7 @@ EditableTabs.defaultProps = {
};

EditableTabs.TabPane.defaultProps = {
closeIcon: (
<Icon role="button" tabIndex={0} cursor="pointer" name="cancel-x" />
),
closeIcon: <StyledCancelXIcon role="button" tabIndex={0} />,
};

export const StyledLineEditableTabs = styled(EditableTabs)`
Expand Down

0 comments on commit 650f0c2

Please sign in to comment.