Skip to content
Snippets Groups Projects
Verified Commit bc08b608 authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3493410 by plopesc, catch, smustgrave: Consider a more substantial shortcuts placeholder

parent 74321e2f
Branches
Tags
11 merge requests!11887Issue #3520065: The migrate Row class API is incomplete,!11636Draft: Issue #3515643 by macsim: fieldNameExists method is inconsistent,!11515Issue #3480419 by mondrake, smustgrave, catch: Method...,!11380Issue #3490698 by catch, spokje: Bump MINIMUM_STABILITY back to 'stable' when...,!11281Use Drupal Core Leadership terminology in MAINTAINERS.txt,!11239Issue #3507548: Allow workspace changes listing to show all items, without a pager,!11238Fix issue #3051797,!11213Issue #3506743 by tomislav.matokovic: Increasing the color contrast for the navigation block title against the background of the navigation sidebar to at least 4.5:1,!11147Draft: Try to avoid manually setting required cache contexts,!11108Issue #3490298 by nicxvan: Profiles can be missed in OOP hooks,!11093Drupal on MongoDB 11.1.x
Pipeline #413010 passed
Pipeline: drupal

#413014

    ......@@ -80,14 +80,6 @@ public function theme($existing, $type, $theme, $path) : array {
    $items['top_bar'] = ['render element' => 'element'];
    $items['top_bar_local_tasks'] = ['variables' => ['local_tasks' => []]];
    $items['top_bar_local_task'] = ['variables' => ['link' => []]];
    $items['big_pipe_interface_preview__navigation_shortcut_lazy_builder_lazyLinks__Shortcuts'] = [
    'variables' => [
    'callback' => NULL,
    'arguments' => NULL,
    'preview' => NULL,
    ],
    'base hook' => 'big_pipe_interface_preview',
    ];
    $items['block__navigation'] = ['render element' => 'elements', 'base hook' => 'block'];
    $items['navigation_menu'] = [
    'base hook' => 'menu',
    ......
    ......@@ -81,7 +81,17 @@ public function build(): array {
    'contexts' => ['user'],
    ],
    '#lazy_builder_preview' => [
    '#markup' => '<a href="#" class="toolbar-tray-lazy-placeholder-link">&nbsp;</a>',
    [
    '#theme' => 'navigation_menu',
    '#menu_name' => 'shortcuts',
    '#title' => $this->configuration['label'],
    '#items' => [
    [
    'title' => $this->configuration['label'],
    'class' => 'shortcuts',
    ],
    ],
    ],
    ],
    ],
    ];
    ......
    {#
    /**
    * @file
    * Placeholder content for the shortcuts menu. This is used to eliminate layout
    * shifts as BigPipe injects data.
    */
    #}
    {% include 'navigation:toolbar-button' with {
    attributes: create_attribute(),
    modifiers: [
    'expand--side',
    'collapsible',
    ],
    extra_classes: [
    'invisible',
    'toolbar-popover__control',
    ],
    icon: 'shortcuts',
    text: 'Shortcuts'|t,
    } only %}
    ......@@ -72,7 +72,7 @@ public function testLogin(): void {
    $recorded_queries = $performance_data->getQueries();
    $this->assertSame($expected_queries, $recorded_queries);
    $this->assertSame(4, $performance_data->getQueryCount());
    $this->assertSame(60, $performance_data->getCacheGetCount());
    $this->assertSame(61, $performance_data->getCacheGetCount());
    $this->assertSame(2, $performance_data->getCacheSetCount());
    $this->assertSame(0, $performance_data->getCacheDeleteCount());
    $this->assertSame(2, $performance_data->getCacheTagChecksumCount());
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment