diff --git a/packages/css/ingress.css b/packages/css/ingress.css index 07f85edcf6..ffd51c4ce5 100644 --- a/packages/css/ingress.css +++ b/packages/css/ingress.css @@ -1,4 +1,4 @@ -@layer fds.ingress { +@layer fds.typography.ingress { .fds-ingress { --fdsc-bottom-spacing: var(--fds-spacing-5); diff --git a/packages/react/src/components/Typography/Ingress/Ingress.tsx b/packages/react/src/components/Typography/Ingress/Ingress.tsx index 731363001d..6df288ef20 100644 --- a/packages/react/src/components/Typography/Ingress/Ingress.tsx +++ b/packages/react/src/components/Typography/Ingress/Ingress.tsx @@ -28,9 +28,7 @@ export const Ingress = forwardRef( className={cl( `fds-ingress`, `fds-ingress--${size}`, - { - 'fds-ingress--spacing': !!spacing, - }, + spacing && 'fds-ingress--spacing', className, )} {...rest}