Skip to content

Commit

Permalink
refactor: Stepper UI 너비 '%' 단위 제거 및 상수화
Browse files Browse the repository at this point in the history
  • Loading branch information
365kim committed Jun 10, 2021
1 parent 1d0bcab commit 9538363
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/molecules/QuantityStepper/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ export const Container = styled.div`
height: 3.75rem;
`;

const STEPPER_WIDTH = '3rem';

export const Input = styled.input`
width: 64%;
width: calc(100% - ${STEPPER_WIDTH});
border-color: ${COLOR.HEX.GRAY_200};
border-width: 0.125rem 0 0.125rem 0.125rem;
border-style: solid;
Expand All @@ -26,7 +28,7 @@ export const Input = styled.input`
`;

export const Controller = styled.div`
width: 36%;
width: ${STEPPER_WIDTH};
`;

export const StepperButton = styled(Button)`
Expand Down

0 comments on commit 9538363

Please sign in to comment.