Skip to content

Commit ade8c2e

Browse files
committed
fix: default type corrections
1 parent 08a804e commit ade8c2e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/components/Button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const ButtonContainer = styled.button<ButtonContainerProps>`
5656
}
5757
`
5858

59-
export type ButtonProps<T extends ElementType = 'li'> = {
59+
export type ButtonProps<T extends ElementType = 'button'> = {
6060
backgroundColor?: string
6161
hoverColor?: string
6262
primary?: boolean

src/components/Card.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ const whenClickable = css`
3636
`
3737

3838
const CardContainer = styled.div<CardContainerProps>`
39+
display: block;
3940
background: ${v.backgroundColor};
4041
color: ${v.textColor};
4142
border-radius: 8px;

src/components/Chip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const ChipContainer = styled.div`
2323
line-height: 1.2;
2424
`
2525

26-
export type ChipProps<T extends ElementType = 'li'> = {
26+
export type ChipProps<T extends ElementType = 'div'> = {
2727
backgroundColor?: string
2828
} & PolymorphicElementProps<T>
2929

0 commit comments

Comments
 (0)