WordPress Updates Bundled Packages and Build Tools to Fix CSS Module Class Name Collisions

WordPress updates bundled packages and build tools to address CSS Module class name collisions in generated stylesheets.
WordPress Updates Bundled Packages and Build Tools to Fix CSS Module Class Name Collisions
Editorial Note: This article is an analytical summary inspired by the original piece published on November 16, 2026

WordPress 7.2 changes how CSS module class names are generated in several packages, including @wordpress/ui, @wordpress/dataviews and @wordpress/components. Names now change when the CSS that defines them changes, so bundled copies with different styles no longer apply their rules to one another’s components.

Previously, @wordpress/build generated names from file paths and class names alone. Different package versions could therefore produce identical names, causing style conflicts when WordPress and a plugin—or multiple plugins—loaded separate copies. A visible symptom could be a focus ring appearing on every hovered tab. WordPress 7.2’s packages avoid collisions with older plugin bundles, but two copies built before the fix can still conflict.

Plugins that bundle these packages should update and release a new version before WordPress 7.2. Fixed releases are @wordpress/ui 0.26.0, @wordpress/dataviews 22.0.0, @wordpress/admin-ui 3.1.0, @wordpress/grid 0.11.0 and @wordpress/components 44.0.0. The latter is supplied by WordPress 7.2 when loaded through wp-components. Plugins compiling CSS modules with @wordpress/build should use version 0.27.0 or later and rebuild.

Bring the latest industry updates to life. Download and test the most popular premium tools and extensions driving today’s WordPress innovations – fully accessible and ready for your next project.

Expand your technical knowledge. Browse our latest articles, performance head-to-heads, and essential workflows designed for modern creators.

Free Wordpress Builders