Skip to content

Commit eccb44f

Browse files
authored
fix: flex setting for content with icon in basic card (#948)
* fix: flex setting for content with icon in basic card * fix: review
1 parent baa0f3d commit eccb44f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/components/IconWrapper/IconWrapper.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,13 @@ $block: '.#{$ns}icon-wrapper';
4040
display: flex;
4141
flex-direction: column;
4242
flex: 1 0 auto;
43+
44+
&_icon-position {
45+
&_left {
46+
@include add-specificity(&) {
47+
flex: 1 0 0;
48+
}
49+
}
50+
}
4351
}
4452
}

src/components/IconWrapper/IconWrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const IconWrapper = (props: PropsWithChildren<IconWrapperProps> & ClassNameProps
2727
className={b('icon', {['icon-position']: iconPosition})}
2828
/>
2929
)}
30-
<div className={b('content')}>{children}</div>
30+
<div className={b('content', {['icon-position']: iconPosition})}>{children}</div>
3131
</div>
3232
);
3333
};

0 commit comments

Comments
 (0)