refactor(Icons): Replaces custom icons with Ant Design 5 icons (#32112)

Replace custom icons with Ant Design 5 icons to standardize the icon
This commit is contained in:
Enzo Martellucci
2025-03-18 22:22:41 +01:00
committed by GitHub
parent 9e3052968b
commit ce6d5f5551
341 changed files with 2222 additions and 3999 deletions

View File

@@ -309,13 +309,11 @@ describe('Additional actions tests', () => {
});
expect(props.actions.redirectSQLLab).toHaveBeenCalledTimes(0);
userEvent.click(screen.getByLabelText('Menu actions trigger'));
expect(screen.queryByText('Edit Chart Properties')).not.toBeInTheDocument();
userEvent.click(
screen.getByRole('menuitem', { name: 'Edit chart properties' }),
);
expect(
await screen.findByText('Edit Chart Properties'),
await screen.findByText('Edit chart properties'),
).toBeInTheDocument();
});

View File

@@ -21,7 +21,7 @@ import { useHistory } from 'react-router-dom';
import { useDispatch } from 'react-redux';
import PropTypes from 'prop-types';
import { Tooltip } from 'src/components/Tooltip';
import { css, logging, SupersetClient, t } from '@superset-ui/core';
import { css, logging, SupersetClient, t, useTheme } from '@superset-ui/core';
import { chartPropShape } from 'src/dashboard/util/propShapes';
import AlteredSliceTag from 'src/components/AlteredSliceTag';
import Button from 'src/components/Button';
@@ -86,6 +86,7 @@ export const ExploreChartHeader = ({
saveDisabled,
metadata,
}) => {
const theme = useTheme();
const dispatch = useDispatch();
const { latestQueryFormData, sliceFormData } = chart;
const [isPropertiesModalOpen, setIsPropertiesModalOpen] = useState(false);
@@ -241,7 +242,10 @@ export const ExploreChartHeader = ({
data-test="query-save-button"
css={saveButtonStyles}
>
<Icons.SaveOutlined iconSize="l" />
<Icons.SaveOutlined
iconSize="l"
iconColor={theme.colors.primary.dark2}
/>
{t('Save')}
</Button>
</div>