Skip to content

Commit

Permalink
Merge pull request #105 from MAIF/fix/object-button-icon-centering
Browse files Browse the repository at this point in the history
fix: center icon in object plus/minus buttons
  • Loading branch information
ptitFicus authored Apr 22, 2024
2 parents 5672e67 + 6725403 commit a6a9fd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/inputs/objectInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,15 @@ export const ObjectInput = (props: {value?: object, onChange?: (value: InternalS
<button
disabled={props.disabled}
type="button"
className='mrf-flex mrf-btn mrf-btn_red mrf-btn_sm mrf-ml_10'
className='mrf-flex mrf-ai_center mrf-btn mrf-btn_red mrf-btn_sm mrf-ml_10'
onClick={() => remove(id)}>
<MinusCircle />
</button>
{idx === Object.keys(internalState).length - 1 && (
<button
disabled={props.disabled}
type="button"
className='mrf-flex mrf-btn mrf-btn_blue mrf-btn_sm mrf-ml_5'
className='mrf-flex mrf-ai_center mrf-btn mrf-btn_blue mrf-btn_sm mrf-ml_5'
onClick={addNext}>
<PlusCircle />
</button>
Expand Down

0 comments on commit a6a9fd8

Please sign in to comment.