Skip to content

Commit

Permalink
fix: icon minwidth
Browse files Browse the repository at this point in the history
  • Loading branch information
disaerna committed Dec 19, 2024
1 parent eabea45 commit eb57c0f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { isDefined } from '@island.is/shared/utils'
import { BaseProps } from './InfoCard'
import { ActionCardProps } from '../ActionCard/types'

import * as styles from './InfoCard.css'
const eyebrowColor = 'blueberry600'

export type DetailedProps = BaseProps & {
Expand Down Expand Up @@ -66,13 +67,13 @@ export const DetailedInfoCard = ({
display="flex"
flexDirection={'row'}
alignItems="center"
className={styles.iconBox}
>
<Icon
icon={d.icon}
size="medium"
type="outline"
color="blue400"
useStroke
/>
<Box marginLeft={2}>
<Text variant="medium">{d.text}</Text>
Expand Down
8 changes: 7 additions & 1 deletion libs/island-ui/core/src/lib/InfoCardGrid/InfoCard.css.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { style } from '@vanilla-extract/css'
import { globalStyle, style } from '@vanilla-extract/css'

export const infoCardSmall = style({
maxWidth: 310,
Expand All @@ -18,3 +18,9 @@ export const infoCardWide = style({
export const wideTitleBox = style({
flexGrow: 2,
})

export const iconBox = style({})

globalStyle(`${iconBox} > svg`, {
minWidth: 24,
})

0 comments on commit eb57c0f

Please sign in to comment.