Skip to content

Commit

Permalink
chore(Ingress): Add layer namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsnes committed Apr 30, 2024
1 parent 5f002b9 commit ad81fb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/css/ingress.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@layer fds.ingress {
@layer fds.typography.ingress {
.fds-ingress {
--fdsc-bottom-spacing: var(--fds-spacing-5);

Expand Down
4 changes: 1 addition & 3 deletions packages/react/src/components/Typography/Ingress/Ingress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ export const Ingress = forwardRef<HTMLParagraphElement, IngressProps>(
className={cl(
`fds-ingress`,
`fds-ingress--${size}`,
{
'fds-ingress--spacing': !!spacing,
},
spacing && 'fds-ingress--spacing',
className,
)}
{...rest}
Expand Down

0 comments on commit ad81fb3

Please sign in to comment.