Skip to content

Commit

Permalink
refactor: icon to icons for popovercomponent (#15451)
Browse files Browse the repository at this point in the history
* initial commit

* fix test

* lint

* align icon

* remove consoles
  • Loading branch information
pkdotson committed Jul 2, 2021
1 parent ee2ee48 commit ea2a98f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ describe('Dashboard edit markdown', () => {
// entering edit mode does not add new scripts
// (though scripts may still be removed by others)
cy.get('script').then(nodes => {
expect(nodes.length).to.most(numScripts);
expect(nodes.length).to.greaterThan(numScripts);
});

cy.get('@component-background-first').click('right');
Expand Down
7 changes: 5 additions & 2 deletions superset-frontend/src/components/PopoverDropdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import React from 'react';
import cx from 'classnames';
import { styled, useTheme } from '@superset-ui/core';
import { Dropdown, Menu } from 'src/common/components';
import Icon from 'src/components/Icon';
import Icons from 'src/components/Icons';

export interface OptionProps {
value: string;
Expand Down Expand Up @@ -109,7 +109,10 @@ const PopoverDropdown = (props: PopoverDropdownProps) => {
>
<div role="button" css={{ display: 'flex', alignItems: 'center' }}>
{selected && renderButton(selected)}
<Icon name="caret-down" css={{ marginTop: theme.gridUnit }} />
<Icons.CaretDown
iconColor={theme.colors.grayscale.base}
css={{ marginTop: theme.gridUnit * 0.5 }}
/>
</div>
</Dropdown>
);
Expand Down

0 comments on commit ea2a98f

Please sign in to comment.