File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
src/components/IconWrapper Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,13 @@ $block: '.#{$ns}icon-wrapper';
2727 max-width : 100% ;
2828 margin-bottom : $indentXXS ;
2929 height : $iconSizePositionTop ;
30- width : $iconSizePositionTop ;
3130 object-fit : contain ;
3231 display : block ;
3332
33+ & _gravity-icon {
34+ width : $iconSizePositionTop ;
35+ }
36+
3437 & _icon-position {
3538 & _left {
3639 height : $iconSizePositionLeftSizeS ;
Original file line number Diff line number Diff line change @@ -25,7 +25,11 @@ const IconWrapper = (props: React.PropsWithChildren<IconWrapperProps> & ClassNam
2525 icon = { icon ?. value }
2626 gravityIcon = { gravityIcon ?. value }
2727 containerClassName = { b ( 'icon-container' ) }
28- className = { b ( 'icon' , { [ 'icon-position' ] : position , size} ) }
28+ className = { b ( 'icon' , {
29+ [ 'icon-position' ] : position ,
30+ size,
31+ [ 'gravity-icon' ] : Boolean ( gravityIcon ) ,
32+ } ) }
2933 />
3034 < div className = { b ( 'content' , { [ 'icon-position' ] : position } ) } > { children } </ div >
3135 </ div >
You can’t perform that action at this time.
0 commit comments