Skip to content

Commit

Permalink
remove linear gradient
Browse files Browse the repository at this point in the history
  • Loading branch information
mxkae committed Jan 14, 2024
1 parent cf1b4d4 commit 0777fe6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
10 changes: 8 additions & 2 deletions src/block/icon-list-item/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,17 @@ const Edit = props => {
<CustomCSS mainBlockClass="stk-block-icon-list-item" />
<div className="stk-block-icon-list-item__content">
{ ! ordered && icon &&
<Icon value={ icon } openEvenIfUnselected={ true } /> }
<Icon
value={ icon }
openEvenIfUnselected={ true }
hasLinearGradient={ false }
/> }
{ ! ordered && ! icon &&
<Icon
value={ getUseSvgDef( `#stk-icon-list__icon-svg-def-${ parentUniqueId }` ) }
openEvenIfUnselected={ true } /> }
openEvenIfUnselected={ true }
hasLinearGradient={ false }
/> }
<Typography
ref={ useMergeRefs( [ ref, useEnterRef ] ) }
realtimeOnChange={ text => textRef.current = text }
Expand Down
17 changes: 15 additions & 2 deletions src/block/icon-list-item/save.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,21 @@ export const Save = props => {
<TextStyles.Content version={ props.version } attributes={ attributes } />
<CustomCSS.Content attributes={ attributes } />
<div className="stk-block-icon-list-item__content">
{ ! attributes.ordered && attributes.icon && <Icon.Content value={ attributes.icon } attributes={ attributes } /> }
{ ! attributes.ordered && ! attributes.icon && <Icon.Content attributes={ attributes } useSvgDef={ true } value={ getUseSvgDef( `#stk-icon-list__icon-svg-def-${ attributes.parentUniqueId }` ) } /> }
{ ! attributes.ordered && attributes.icon &&
<Icon.Content
value={ attributes.icon }
attributes={ attributes }
hasLinearGradient={ false }
/> }
{ ! attributes.ordered && ! attributes.icon &&
<Icon.Content
attributes={ attributes }
useSvgDef={ true }
value={ getUseSvgDef(
`#stk-icon-list__icon-svg-def-${ attributes.parentUniqueId }`
) }
hasLinearGradient={ false }
/> }
<Typography.Content
attributes={ attributes }
tagName="span"
Expand Down

0 comments on commit 0777fe6

Please sign in to comment.