mirror of
https://github.com/apache/superset.git
synced 2026-05-12 03:15:55 +00:00
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:
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user