diff --git a/packages/react/src/components/Chip/Removable/Removable.tsx b/packages/react/src/components/Chip/Removable/Removable.tsx index 1eeb6787e0..f36be64cb9 100644 --- a/packages/react/src/components/Chip/Removable/Removable.tsx +++ b/packages/react/src/components/Chip/Removable/Removable.tsx @@ -35,7 +35,7 @@ export const RemovableChip = forwardRef( {children} diff --git a/packages/react/src/components/Chip/Toggle/Toggle.tsx b/packages/react/src/components/Chip/Toggle/Toggle.tsx index adafc41d14..2a6a546997 100644 --- a/packages/react/src/components/Chip/Toggle/Toggle.tsx +++ b/packages/react/src/components/Chip/Toggle/Toggle.tsx @@ -55,7 +55,7 @@ export const ToggleChip = forwardRef( {shouldDisplayCheckmark && ( diff --git a/packages/react/src/components/Typography/Paragraph/Paragraph.stories.tsx b/packages/react/src/components/Typography/Paragraph/Paragraph.stories.tsx index 060d392bef..7c5d3b74aa 100644 --- a/packages/react/src/components/Typography/Paragraph/Paragraph.stories.tsx +++ b/packages/react/src/components/Typography/Paragraph/Paragraph.stories.tsx @@ -16,8 +16,6 @@ export const Preview: Story = { children: 'Personvernerklæringen gir informasjon om hvilke personopplysninger vi behandler, hvordan disse blir behandlet og hvilke rettigheter du har.', spacing: false, - short: false, - long: false, size: 'medium', }, }; diff --git a/packages/react/src/components/Typography/Paragraph/Paragraph.tsx b/packages/react/src/components/Typography/Paragraph/Paragraph.tsx index b154cd3009..381f025570 100644 --- a/packages/react/src/components/Typography/Paragraph/Paragraph.tsx +++ b/packages/react/src/components/Typography/Paragraph/Paragraph.tsx @@ -3,8 +3,6 @@ import { forwardRef } from 'react'; import cl from 'clsx'; import { Slot } from '@radix-ui/react-slot'; -import type { OverridableComponent } from '../../../types/OverridableComponent'; - import classes from './Paragraph.module.css'; export type ParagraphProps = { @@ -22,23 +20,9 @@ export type ParagraphProps = { } & HTMLAttributes; /** Use `Paragraph` to display text with paragraph text styles. */ -export const Paragraph: OverridableComponent< - ParagraphProps, - HTMLParagraphElement -> = forwardRef( - ( - { - className, - size = 'medium', - spacing, - as = 'p', - asChild, - variant, - ...rest - }, - ref, - ) => { - const Component = asChild ? Slot : as; +export const Paragraph = forwardRef( + ({ className, size = 'medium', spacing, asChild, variant, ...rest }, ref) => { + const Component = asChild ? Slot : 'p'; return ( ( Når du skal signere meldingen vil du motta en signeringsoppgave i @@ -83,7 +83,7 @@ export const EksempelTekst: StoryFn = () => ( Personvernerklæringen gir informasjon om hvilke personopplysninger vi diff --git a/packages/react/src/components/form/Fieldset/Fieldset.tsx b/packages/react/src/components/form/Fieldset/Fieldset.tsx index 4e713d6c89..a4fe10ce50 100644 --- a/packages/react/src/components/form/Fieldset/Fieldset.tsx +++ b/packages/react/src/components/form/Fieldset/Fieldset.tsx @@ -90,8 +90,8 @@ export const Fieldset = forwardRef( {description && (
(
(