fix(editor): keep bubble menu styles in production builds
The editor's bubble menu keeps its layout and theme again in Next.js 16.4 production builds with Turbopack. Before, the menu on the react.email homepage, and in any app on that setup, showed stacked controls with no background. The homepage menu also opened at the editor's left edge on the first selection. It now opens under the selected word.
Why not patch TipTap. #3896 patches @tiptap/react for the website only. This fix also reaches apps that use the published editor, and nothing needs removal after vercel/next.js#100477 ships in a stable release.
Gotcha. The visible menu box is now a child of TipTap's positioned element. Custom CSS that sets z-index through className also needs position. The default theme sets both.
How to reach it. Build apps/web for production with REDIS_URL set, then double-click a word in the homepage editor.
Fixes #3895
Summary by cubic
Fixes the editor bubble menu losing its layout and theme in Next.js 16.4 production builds with Turbopack. The menu previously showed stacked controls with no background and opened at the editor's left edge on the first selection; it now opens under the selected word.
data-re-bubble-menu,className,style, and other props now go on a wrapper element inside TipTap's positioned menu element, so React sets them instead of relying on prop sync that Turbopack drops.- The homepage editor scopes its full-width rule to
.tiptapso the menu no longer stretches to the editor edge. - Custom CSS that sets
z-indexviaclassNamenow also needsposition, since those rules apply to the inner element, not the positioned one.positionis included in the layout styles.
Fixes #3895.