Skip to content

Fiks manglende grid og gap på layout-subgrid-* i prod-build#1788

Merged
oscarcarlstrom merged 1 commit into
mainfrom
fix/layout-subgrid-shared-styles
May 20, 2026
Merged

Fiks manglende grid og gap på layout-subgrid-* i prod-build#1788
oscarcarlstrom merged 1 commit into
mainfrom
fix/layout-subgrid-shared-styles

Conversation

@oscarcarlstrom
Copy link
Copy Markdown
Contributor

@oscarcarlstrom oscarcarlstrom commented May 19, 2026

Oppsummering

@utility layout-subgrid-* (uten --value()) ble droppet i enkelte konsument-production-builds (bl.a. obos-nettsider sin Next.js Docker-build etter en oppgradering av tailwind), slik at .layout-subgrid-N-klassene manglet display: grid og responsive column-gap i prod. Flytter delt CSS inn i hver static @utility layout-subgrid-N så de alltid genereres.

Endringer

  • Fjerner @utility layout-subgrid-*-blokken i packages/tailwind/tailwind-base.css.
  • Legger til layout-grid-gap-x grid i hver av @utility layout-subgrid-1 t.o.m. layout-subgrid-14.
  • @utility layout-subgrid-full arver fortsatt via @apply layout-subgrid-14.

Replace the value-less functional @Utility layout-subgrid-* with inlined
@apply directives on each static layout-subgrid-N utility. The functional
variant relied on Tailwind v4 emitting @apply'd styles for a name-*
utility that never calls --value(), which is not honored reliably across
Tailwind versions and downstream production builds.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 19, 2026

🦋 Changeset detected

Latest commit: 569b615

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@obosbbl/grunnmuren-tailwind Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@oscarcarlstrom oscarcarlstrom marked this pull request as ready for review May 19, 2026 17:53
@oscarcarlstrom oscarcarlstrom requested a review from a team as a code owner May 19, 2026 17:53
@oscarcarlstrom oscarcarlstrom merged commit ad72164 into main May 20, 2026
1 check passed
@oscarcarlstrom oscarcarlstrom deleted the fix/layout-subgrid-shared-styles branch May 20, 2026 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants