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
parent
38bd6ea0ed
commit
04fad10830
|
@ -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',
|
||||
|
|
|
@ -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 %}
|
Loading…
Reference in New Issue