Skip to content

Commit 25b08b0

Browse files
Fix layout-gap-x utility class (#1533)
Correct the composition of the `layout-gap-x` utility class to ensure proper gap spacing on all screen sizes larger than the `sm` breakpoint, addressing an issue observed in the `Card` component of `grunnmuren-react`: <img width="1559" height="600" alt="Screenshot 2025-11-20 at 10 31 58" src="https://github.com/user-attachments/assets/031092db-a7ec-4592-ad03-b50dd73fa11a" /> With this fix: <img width="1324" height="450" alt="Screenshot 2025-11-20 at 10 32 09" src="https://github.com/user-attachments/assets/5c583c71-8f93-4e06-ac2b-d972d6b7c1a4" />
1 parent b1b752c commit 25b08b0

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/early-groups-buy.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@obosbbl/grunnmuren-tailwind": patch
3+
---
4+
5+
Fixes incorrect composition of the `layout-gap-x` utility class. The issue caused the wrong gap on on all screen sizes larger than the `sm` breakpoint. This was visible in the `Card` component in `grunnmuren-react` as well.

packages/tailwind/tailwind-base.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@
114114
}
115115

116116
@utility layout-gap-x {
117-
@apply gap-x-2 layout-grid-gap-x;
117+
@apply gap-x-2;
118+
@apply layout-grid-gap-x;
118119
}
119120

120121
@utility layout-gap-y {

0 commit comments

Comments
 (0)