mirror of
https://github.com/apache/superset.git
synced 2026-04-24 18:44:53 +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:
@@ -36,7 +36,7 @@ describe('SaveDatasetActionButton', () => {
|
||||
);
|
||||
|
||||
const saveBtn = screen.getByRole('button', { name: /save/i });
|
||||
const caretBtn = screen.getByRole('button', { name: /caret-down/i });
|
||||
const caretBtn = screen.getByRole('button', { name: /down/i });
|
||||
|
||||
expect(
|
||||
await screen.findByRole('button', { name: /save/i }),
|
||||
@@ -53,9 +53,9 @@ describe('SaveDatasetActionButton', () => {
|
||||
/>,
|
||||
);
|
||||
|
||||
const caretBtn = screen.getByRole('button', { name: /caret-down/i });
|
||||
const caretBtn = screen.getByRole('button', { name: /down/i });
|
||||
expect(
|
||||
await screen.findByRole('button', { name: /caret-down/i }),
|
||||
await screen.findByRole('button', { name: /down/i }),
|
||||
).toBeInTheDocument();
|
||||
userEvent.click(caretBtn);
|
||||
|
||||
|
||||
@@ -41,9 +41,9 @@ const SaveDatasetActionButton = ({
|
||||
onClick={() => setShowSave(true)}
|
||||
dropdownRender={() => overlayMenu}
|
||||
icon={
|
||||
<Icons.CaretDown
|
||||
iconColor={theme.colors.grayscale.light5}
|
||||
name="caret-down"
|
||||
<Icons.DownOutlined
|
||||
iconSize="xs"
|
||||
iconColor={theme.colors.primary.dark2}
|
||||
/>
|
||||
}
|
||||
trigger={['click']}
|
||||
|
||||
Reference in New Issue
Block a user