Repository navigation
Show the action title in mobile text editor toolbar drops - #3399
Merged
Merged
Conversation
Toolbar menus such as "Insert image" and "Create a table" turn into a bottom drawer on mobile. OcDrop renders its `title` prop as the drawer header, but the toolbar never passed one, so the header stayed empty. Pass the action title on both the toolbar drop and the nested drop of a child action, e.g. the table size picker behind "Choose rows & columns". While at it, the nested drop read the parent's `menuEnforceDropOnMobile` flag instead of the child's.
AlexAndBear
force-pushed
the
fix/mobile-toolbar-drop-title
branch
from
September 17, 2026 15:15
3ba6847 to
dd44868
Compare
kulmann
approved these changes
Sep 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Toolbar menus in the text editor turn into a bottom drawer on mobile.
OcDroprenders itstitleprop as the drawer header, butTextEditorToolbarItemnever passed one, so the header stayed empty and the drawer opened without any indication of what it belongs to. This was most noticeable on "Insert image" and "Create a table".The fix passes the action title on both drop levels:
:title="item.title"— e.g. "Insert image", "Create a table":title="child.title"— e.g. "Choose rows & columns", which is the drawer holding the mobile table size pickerAll toolbar menus that become a drawer were affected, not just those two: font size, text align, turn into, text colour, background colour and line height get a header now as well. "Insert emoji", "Search and replace" and the overflow menu were never affected because they set
menuEnforceDropOnMobileand stay popovers.While at it, the nested drop read the parent's
menuEnforceDropOnMobileflag instead of the child's. No behaviour changes today since no child action sets it, but the setting would have been silently ignored the first time one did.Related Issue
How Has This Been Tested?
pnpm vite), Chrome DevTools device emulation below the 640px mobile breakpoint; unit tests viapnpm test:unit --runtitleis only rendered by the mobile drawerTextEditorToolbarItem.spec.tsassert the title reaches both drop levels; both fail without the fixpnpm check:all— types, lint, format and 4100+ unit tests passTypes of changes