Skip to content

Commit

Permalink
feat(react-settings-form): add exclude inherit in BoxStyleSetter/BoxS…
Browse files Browse the repository at this point in the history
…hadowStyleSetter (#133)
  • Loading branch information
prgrmrwy authored Nov 19, 2021
1 parent a66bace commit d717ebe
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,28 @@ export const BoxShadowStyleSetter: React.FC<IBoxShadowStyleSetterProps> =
<FoldItem.Extra>
<InputItems width="50%">
<InputItems.Item icon="AxisX">
<SizeInput exclude={['auto']} {...createBoxShadowConnector(0)} />
<SizeInput
exclude={['inherit', 'auto']}
{...createBoxShadowConnector(0)}
/>
</InputItems.Item>
<InputItems.Item icon="AxisY">
<SizeInput exclude={['auto']} {...createBoxShadowConnector(1)} />
<SizeInput
exclude={['inherit', 'auto']}
{...createBoxShadowConnector(1)}
/>
</InputItems.Item>
<InputItems.Item icon="Blur">
<SizeInput exclude={['auto']} {...createBoxShadowConnector(2)} />
<SizeInput
exclude={['inherit', 'auto']}
{...createBoxShadowConnector(2)}
/>
</InputItems.Item>
<InputItems.Item icon="Shadow">
<SizeInput exclude={['auto']} {...createBoxShadowConnector(3)} />
<SizeInput
exclude={['inherit', 'auto']}
{...createBoxShadowConnector(3)}
/>
</InputItems.Item>
</InputItems>
</FoldItem.Extra>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,33 +68,33 @@ export const BoxStyleSetter: React.FC<IMarginStyleSetterProps> = observer(
<FoldItem.Base>
<SizeInput
{...createPositionHandler('all', props)}
exclude={['auto']}
exclude={['inherit', 'auto']}
/>
</FoldItem.Base>
<FoldItem.Extra>
<InputItems width="50%">
<InputItems.Item icon={props.labels[0]}>
<SizeInput
{...createPositionHandler('top', props)}
exclude={['auto']}
exclude={['inherit', 'auto']}
/>
</InputItems.Item>
<InputItems.Item icon={props.labels[1]}>
<SizeInput
{...createPositionHandler('right', props)}
exclude={['auto']}
exclude={['inherit', 'auto']}
/>
</InputItems.Item>
<InputItems.Item icon={props.labels[2]}>
<SizeInput
{...createPositionHandler('bottom', props)}
exclude={['auto']}
exclude={['inherit', 'auto']}
/>
</InputItems.Item>
<InputItems.Item icon={props.labels[3]}>
<SizeInput
{...createPositionHandler('left', props)}
exclude={['auto']}
exclude={['inherit', 'auto']}
/>
</InputItems.Item>
</InputItems>
Expand Down

0 comments on commit d717ebe

Please sign in to comment.