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.