From e98ea3263009a2cb9be10fef19f2f3b7a7a9a3cb Mon Sep 17 00:00:00 2001 From: RabbitDoge <72658581+RabbitDoge@users.noreply.github.com> Date: Fri, 22 Jan 2021 13:26:20 +0900 Subject: [PATCH] fix: Radio and Breadcrumb (#149) --- src/__tests__/components/radio.test.tsx | 2 +- src/components/Breadcrumbs/Breadcrumbs.tsx | 2 +- src/components/Radio/Radio.tsx | 3 +++ src/components/Radio/types.ts | 4 +++- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/__tests__/components/radio.test.tsx b/src/__tests__/components/radio.test.tsx index 2419ba8cc..4abe147d9 100644 --- a/src/__tests__/components/radio.test.tsx +++ b/src/__tests__/components/radio.test.tsx @@ -7,7 +7,7 @@ it("renders correctly", () => { expect(asFragment()).toMatchInlineSnapshot(` { @@ -66,10 +67,12 @@ const Radio = styled.input.attrs({ type: "radio" })` cursor: default; opacity: 0.6; } + ${space} `; Radio.defaultProps = { scale: scales.MD, + m: 0, }; export default Radio; diff --git a/src/components/Radio/types.ts b/src/components/Radio/types.ts index eee67dcd8..055e9ad67 100644 --- a/src/components/Radio/types.ts +++ b/src/components/Radio/types.ts @@ -1,3 +1,5 @@ +import { SpaceProps } from "styled-system"; + export type RadioTheme = { handleBackground: string; }; @@ -9,6 +11,6 @@ export const scales = { export type Scales = typeof scales[keyof typeof scales]; -export interface RadioProps { +export interface RadioProps extends SpaceProps { scale?: Scales; }