Skip to content

Commit 50d33a2

Browse files
Remove redundant x-padding (#1334)
1 parent 10f9389 commit 50d33a2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/four-insects-fetch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@obosbbl/grunnmuren-react": patch
3+
---
4+
5+
Removes redundant x-padding on the `<Hero>` component, as the component will typically be rendered inside a `<main className="container">` parent.

packages/react/src/hero/hero.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const oneColumnLayout = [
2828

2929
const variants = cva({
3030
base: [
31-
'container',
31+
'container px-0', // We want to eliminate the default padding on the container, as this component will typically be put inside a container
3232
// Grid variant to position the Hero's content
3333
'grid lg:grid-cols-12 lg:gap-x-12 xl:gap-x-16',
3434
'gap-y-10 lg:gap-y-12',

0 commit comments

Comments
 (0)