<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/update-bundled-wordpress-packages-and-wordpress-build-to-fix-css-module-class-name-collisions-cgvyb5ymp" -->

---
title: Update bundled @wordpress/* packages and...
description: A bug in @wordpress/build caused bundled copies of @wordpress/* packages to share CSS module class names across versions, letting one copy's styles leak into...
canonical: https://daily.dev/posts/update-bundled-wordpress-packages-and-wordpress-build-to-fix-css-module-class-name-collisions-cgvyb5ymp
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Update bundled @wordpress/* packages and @wordpress/build to fix CSS module class name collisions | daily.dev
og:description: A bug in @wordpress/build caused bundled copies of @wordpress/* packages to share CSS module class names across versions, letting one copy's styles leak into...
og:url: https://daily.dev/posts/update-bundled-wordpress-packages-and-wordpress-build-to-fix-css-module-class-name-collisions-cgvyb5ymp
og:image: https://api.daily.dev/og/posts/CgVyB5yMp.png
og:image:alt: Update bundled @wordpress/* packages and @wordpress/build to fix CSS module class name collisions
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Update bundled @wordpress/* packages and @wordpress/build to fix CSS module class name collisions

**[Make WordPress Core](https://daily.dev/sources/wordpresscore)** · 2 min read · 0 upvotes · 0 comments

## Summary

A bug in @wordpress/build caused bundled copies of @wordpress/* packages to share CSS module class names across versions, letting one copy's styles leak into another's components. This could produce visual glitches, such as a focus ring appearing on every hovered tab. Plugin authors who bundle @wordpress/ui, @wordpress/dataviews, @wordpress/admin-ui, @wordpress/grid, @wordpress/components, or use @wordpress/build to compile CSS modules must update to the fixed versions (0.26.0, 22.0.0, 3.1.0, 0.11.0, 44.0.0, and 0.27.0 respectively) and rebuild before WordPress 7.2. Starting in 7.2, class names change whenever their CSS changes, so differing copies no longer collide, though two older bundled copies can still collide with each other.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://make.wordpress.org/core/2026/11/16/update-bundled-wordpress-packages-and-wordpress-build-to-fix-css-module-class-name-collisions>

## Questions this post answers

### Why do my plugin's WordPress components get styled wrong when another plugin also bundles @wordpress/ui?

A bug in @wordpress/build made bundled copies of @wordpress/* packages share CSS module class names even when their CSS differed, because class names depended only on file path and class name instead of the CSS content. This let one copy's styles leak into another copy's components, causing visual mismatches like a focus ring appearing on every hovered tab. Update to @wordpress/ui 0.26.0 or later to fix it.

_daily.dev surfaces fixes like this for developers tracking WordPress packaging bugs before they ship._

### Which @wordpress/build version fixes the CSS module class name collision bug?

@wordpress/build 0.27.0 or later fixes the bug. Plugins that compile their own CSS modules with @wordpress/build need to update to that version and rebuild before WordPress 7.2 ships, since class names will then change whenever the underlying CSS changes rather than staying tied only to file path and class name.

_Developers maintaining WordPress plugins can track required package bumps like this one on daily.dev._

### Does updating to WordPress 7.2 automatically fix CSS collisions between plugins bundling different versions of @wordpress/ui?

Not fully. WordPress 7.2 builds its own packages so that class names change whenever their CSS changes, preventing collisions with copies your plugin bundles from older versions. However, two plugins that each bundle an older, pre-fix version of @wordpress/ui can still collide with each other, since neither was built with the corrected class name behavior.

_Keep track of edge cases like this cross-plugin collision risk via daily.dev before rolling out a WordPress upgrade._

## Similar posts on daily.dev

- [WordPress 6.9 Hotfixes](https://daily.dev/posts/wordpress-6-9-hotfixes-89mwhrhk1) · Make WordPress Core · 3 upvotes · 0 comments
- [What’s new for developers? \(October 2026\)](https://daily.dev/posts/what-s-new-for-developers-october-2026--ceuxvtbri) · WordPress Developer · 26 upvotes · 0 comments

---

Tags: [#css](https://daily.dev/tags/css), [#wordpress](https://daily.dev/tags/wordpress)

[View this post on daily.dev](https://daily.dev/posts/update-bundled-wordpress-packages-and-wordpress-build-to-fix-css-module-class-name-collisions-cgvyb5ymp)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Update bundled @wordpress/* packages and @wordpress/build to fix CSS module class name collisions","url":"https://daily.dev/posts/update-bundled-wordpress-packages-and-wordpress-build-to-fix-css-module-class-name-collisions-cgvyb5ymp","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/update-bundled-wordpress-packages-and-wordpress-build-to-fix-css-module-class-name-collisions-cgvyb5ymp"},"datePublished":"2026-11-16T10:16:01.531Z","dateModified":"2026-11-16T10:24:38.083Z","description":"A bug in @wordpress/build caused bundled copies of @wordpress/* packages to share CSS module class names across versions, letting one copy's styles leak into...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6ad4f5b66be737a1618019916626b1bd?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6ad4f5b66be737a1618019916626b1bd?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Make WordPress Core","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Make WordPress Core","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/892d1a79e30e4e8a911b5726c6fb1a06","url":"https://daily.dev/sources/wordpresscore"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/update-bundled-wordpress-packages-and-wordpress-build-to-fix-css-module-class-name-collisions-cgvyb5ymp","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"css,wordpress","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Make WordPress Core","item":"https://daily.dev/sources/wordpresscore"},{"@type":"ListItem","position":3,"name":"Update bundled @wordpress/* packages and @wordpress/build to fix CSS module class name collisions"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/update-bundled-wordpress-packages-and-wordpress-build-to-fix-css-module-class-name-collisions-cgvyb5ymp#faq","mainEntity":[{"@type":"Question","name":"Why do my plugin's WordPress components get styled wrong when another plugin also bundles @wordpress/ui?","acceptedAnswer":{"@type":"Answer","text":"A bug in @wordpress/build made bundled copies of @wordpress/* packages share CSS module class names even when their CSS differed, because class names depended only on file path and class name instead of the CSS content. This let one copy's styles leak into another copy's components, causing visual mismatches like a focus ring appearing on every hovered tab. Update to @wordpress/ui 0.26.0 or later to fix it. daily.dev surfaces fixes like this for developers tracking WordPress packaging bugs before they ship."}},{"@type":"Question","name":"Which @wordpress/build version fixes the CSS module class name collision bug?","acceptedAnswer":{"@type":"Answer","text":"@wordpress/build 0.27.0 or later fixes the bug. Plugins that compile their own CSS modules with @wordpress/build need to update to that version and rebuild before WordPress 7.2 ships, since class names will then change whenever the underlying CSS changes rather than staying tied only to file path and class name. Developers maintaining WordPress plugins can track required package bumps like this one on daily.dev."}},{"@type":"Question","name":"Does updating to WordPress 7.2 automatically fix CSS collisions between plugins bundling different versions of @wordpress/ui?","acceptedAnswer":{"@type":"Answer","text":"Not fully. WordPress 7.2 builds its own packages so that class names change whenever their CSS changes, preventing collisions with copies your plugin bundles from older versions. However, two plugins that each bundle an older, pre-fix version of @wordpress/ui can still collide with each other, since neither was built with the corrected class name behavior. Keep track of edge cases like this cross-plugin collision risk via daily.dev before rolling out a WordPress upgrade."}}]}
```

