Skip to content

Text editor toolbar menus open without a title in the mobile bottom drawer #3400

Closed

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

Toolbar menus in the text editor turn into a bottom drawer on mobile viewports. The drawer header is rendered from the title prop of OcDrop, but TextEditorToolbarItem does not pass one, so the drawer opens with an empty header and no indication of which menu it belongs to.

This affects every toolbar menu that becomes a drawer. It is most noticeable on "Insert image" and "Create a table", including the nested drawer behind "Choose rows & columns" that holds the table size picker.

Reproduction Steps

  1. Open a Markdown or text file in the text editor on a mobile viewport (below the 640px breakpoint, e.g. Chrome DevTools device emulation).
  2. Tap the image button in the editor toolbar.
  3. Observe the bottom drawer that opens.
  4. Repeat with the table button, then tap "Choose rows & columns" inside the drawer that opens.

Expected Outcome

The bottom drawer shows the title of the action it was opened from, for example "Insert image", "Create a table" and "Choose rows & columns", the same way other bottom drawers in the application do.

Actual Outcome

The drawer header is empty. Only the back and close buttons are visible, so there is nothing naming the menu that is open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions