Skip to content

Commit

Permalink
feat(Paragraph): Remove deprectated short prop (#1891)
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsnes authored Apr 29, 2024
1 parent 17ef8c6 commit e1213b0
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ export type ParagraphProps = {
size?: 'xsmall' | 'small' | 'medium' | 'large';
/** Adds margin-bottom */
spacing?: boolean;
/** Reduces line-height for short paragraphs
* @deprecated Use `variant="short"` instead
*/
short?: boolean;
/** Adjusts styling for paragraph length */
variant?: 'long' | 'short';
/**
Expand All @@ -37,7 +33,6 @@ export const Paragraph: OverridableComponent<
spacing,
as = 'p',
asChild,
short,
variant,
...rest
},
Expand All @@ -53,7 +48,6 @@ export const Paragraph: OverridableComponent<
classes[size],
{
[classes.spacing]: !!spacing,
[classes.short]: short,
},
variant && classes[variant],
className,
Expand Down

0 comments on commit e1213b0

Please sign in to comment.