From 4d1b7f4093aed3c28aa32c5991f56afec32bd9b5 Mon Sep 17 00:00:00 2001 From: Charles de Dreuille Date: Thu, 29 Jan 2026 13:21:26 +0000 Subject: [PATCH] Add changeset for CSS Module fixes Signed-off-by: Charles de Dreuille --- .changeset/fix-nextjs16-css-modules.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .changeset/fix-nextjs16-css-modules.md diff --git a/.changeset/fix-nextjs16-css-modules.md b/.changeset/fix-nextjs16-css-modules.md new file mode 100644 index 0000000000..6e49f893c0 --- /dev/null +++ b/.changeset/fix-nextjs16-css-modules.md @@ -0,0 +1,11 @@ +--- +'@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 { }`. + +**Affected components:** popover, tooltip