Create the content menu

Created on 12 July 2023, 12 months ago

Problem/Motivation

We are adding a content menu to the toolbar. The goal of this menu is to improve the usability for content editors/authors. The plan is to include this menu in the second phase of the toolbar changes, but we are including this on the prototypes so we can foresee any future usability problems.

Drupal.org issue 🌱 New “content creation” menu proposal Needs review

Proposed resolution

Same as in #15 , create a component that shares the same markup Drupal creates by default when you place a menu as a block.

See block--system-menu-block.html.twig as example. Example code:

<nav id="this-menu-id" class="" aria-labelledby="title-id" role="navigation">
 <h2 class="" id="title-id">Administration menu</h2>
 <ul class="">
       <li class=""><a >Link text</a></li>
 </ul>
</nav>

Use the content from the screenshot as example:

  • Add a heading
  • Add links with their own icons
  • Add a “Create" button with icon (this is not standard from Drupal, so we have the freedom to choose the wrapper markup and classes, but it can't be a button: it needs to be a link because it's not in a form) )
  • Same as the other tickets for now, the styles are not important yet.
📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇺🇸United States baluv3

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

Comments & Activities

Production build 0.69.0 2024