diff --git a/.changeset/fix-nextjs16-css-modules.md b/.changeset/fix-nextjs16-css-modules.md index 6e49f893c0..1cc223fb0d 100644 --- a/.changeset/fix-nextjs16-css-modules.md +++ b/.changeset/fix-nextjs16-css-modules.md @@ -2,10 +2,6 @@ '@backstage/ui': patch --- -Fixed CSS Module purity errors for Next.js 16 compatibility - -After upgrading to Next.js 16.1.6, the build failed with CSS Module purity errors. Next.js 16 with Turbopack enforces stricter validation requiring global selectors like `[data-theme='dark']` to be combined with local classes. - -Changed nested selector structure from `[data-theme='dark'] { .class { } }` to flattened `[data-theme='dark'] .class { }`. +Fixed CSS Module syntax to comply with Next.js 16 Turbopack validation by flattening nested dark theme selectors. **Affected components:** popover, tooltip