Skip to content

Commit

Permalink
Align editable and non-editable commissionFields
Browse files Browse the repository at this point in the history
  • Loading branch information
Hjort committed Oct 10, 2023
1 parent ee810a1 commit 117e75a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ interface CommissionFieldProps {
max: number;
}

const commonSliderProps: Pick<PropsOf<typeof Slider>, 'step' | 'unit' | 'className'> = {
const commonSliderProps: Pick<PropsOf<typeof Slider>, 'step' | 'unit'> = {
step: 0.001,
unit: '%',
className: 'm-b-10',
};

type Props = Pick<InputHTMLAttributes<HTMLInputElement>, 'type' | 'className' | 'autoFocus'> &
Expand Down Expand Up @@ -64,6 +63,7 @@ export function CommissionInput({
max={maxPercentage}
onChange={onChange}
onBlur={onBlur}
className={clsx('baking__commissionField-slider', className)}
{...commonSliderProps}
/>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,11 @@
.baking {
&__commissionField-slider {
margin-top: rem(10px);
margin-bottom: rem(10px);
}

&__commissionField-label {
font-size: rem(8px);
color: $color-text;
font-weight: $font-weight-bold;
text-align: center;
}

Expand Down

0 comments on commit 117e75a

Please sign in to comment.