Issue #3443559 by mherchel, ckrina, finnsky, lauriii: Regression: Shortcuts menu flickers when the page is loaded

(cherry picked from commit c0beeeea5f)
merge-requests/7882/merge
nod_ 2024-05-09 06:52:06 +09:00
parent 38bd6ea0ed
commit 04fad10830
No known key found for this signature in database
GPG Key ID: 76624892606FA197
2 changed files with 23 additions and 0 deletions

View File

@ -106,6 +106,15 @@ function navigation_theme($existing, $type, $theme, $path) {
],
];
$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',

View File

@ -0,0 +1,14 @@
{#
/**
* @file
* Placeholder content for the shortcuts menu. This is used to eliminate layout
* shifts as BigPipe injects data.
*/
#}
{% include '@navigation/toolbar-button.html.twig' with {
attributes: create_attribute(),
extra_classes: 'invisible toolbar-button--icon--shortcuts toolbar-button--expand--side toolbar-button--collapsible toolbar-popover__control',
icon: 'shortcuts',
text: 'Shortcuts'|t,
} only %}