WordPress 7.2 completes the move of @wordpress/components from Emotion to SCSS Modules, removing the package’s remaining Emotion dependencies and reducing styling runtime and build overhead. Most extensions using documented props and className require no changes, but __experimentalView’s legacy css prop now has no effect: inline declarations belong in style, while stylesheet rules, media queries and pseudo-classes should use className.
Emotion-dependent integrations need more targeted updates. Components no longer merge Emotion styles when combining class names, so fragments with overlapping declarations or order-sensitive selectors should be combined in one css() call before cx(). For Emotion styles rendered into an iframe or another document, provide a cache whose container is that document’s head; React’s CacheProvider does not configure the separate cache used by @emotion/css. The WordPress StyleProvider remains necessary for package CSS Module registration, and those styles still use runtime injection.
Extensions should declare imported Emotion packages directly, filter application-only props before they reach DOM elements, and run any required Babel transforms explicitly before @wordpress/build. Separately, __experimentalFontFamilyControl now uses @wordpress/ui; its .block-editor-font-family-control root class remains, but custom CSS overrides may need review.