Skip to content

Commit

Permalink
fix icon sizing without label
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Jan 14, 2025
1 parent e8d0b78 commit 14b569a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/status-popover/dev.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Icon } from '@equinor/eds-core-react';
import { check } from '@equinor/eds-icons';
import { StatusPopover, type StatusPopoverType } from './status-popover';

const types = [
Expand All @@ -23,6 +25,7 @@ export default (
{labels.map((label, i) =>
types.map((type) => (
<StatusPopover
icon={<Icon data={check} />}
title={type}
key={label + type}
label={label}
Expand Down
5 changes: 5 additions & 0 deletions src/components/status-popover/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
margin-right: 2px;
}

& svg {
width: 16px;
height: 16px;
}

color: var(--eds_interactive_primary__resting);
& svg {
fill: var(--eds_interactive_primary__resting);
Expand Down

0 comments on commit 14b569a

Please sign in to comment.