Option to use modal instead of custom sidebar

Created on 11 October 2024, 2 months ago

Problem/Motivation

Right now when editing stuff that is not in-place, a custom toolbar-plus-right-sidebar sidebar element is used to contain the layout_builder_update_block form.
For some projects it makes sense to not want to have a custom sidebar element but instead use a default off-canvas or a modal to load the layout_builder_update_block form into.

First screenshot is how block edit form currently looks in the custom toolbar_plus sidebar when editing an 'Image' block type.
Second screenshot is how block edit form looks like in a modal without using toolbar_plus (and edit_plus) when editing an 'Image' block type

Steps to reproduce

- Use edit_plus and toolbar_plus
- Visit a layoutbuilder page
- Click to edit a Media field, for example, and witness the layout_builder_update_block form opening inside a custom <aside id="toolbar-plus-right-sidebar" class="toolbar-plus-sidebar-wrapper"> element

Proposed resolution

- Edit the admin/config/content/toolbar-plus settings page
- Add option to choose method of opening block edit forms etc:
-- Custom Toolbar+ sidebar (default)
-- Off-Canvas
-- Modal

Remaining tasks

Implement necessary code and changes to achieve this

User interface changes

- The toolbar plus settings page will have an extra option
- The way config stuff like the layout_builder_update_block form open will be different depending on the chosen option

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium flyke

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @flyke
  • πŸ‡ΊπŸ‡ΈUnited States tim bozeman

    Yes we definitely need some thing that will allow the sidebar to expand or even pop out in a modal, though I haven't had a need for it yet. I haven't put any effort into how things appear in the sidebar yet.

Production build 0.71.5 2024