Commit 796cec20 authored by alexpott's avatar alexpott

Issue #2361599 by stefan.korn: Fixed menu_ui css file is not loaded.

parent 5a3027cb
......@@ -14,3 +14,9 @@ drupal.menu_ui.admin:
dependencies:
- core/jquery
- core/drupal
drupal.menu_ui.adminforms:
version: VERSION
css:
theme:
css/menu_ui.admin.css: {}
......@@ -220,7 +220,7 @@ protected function buildOverviewForm(array &$form, FormStateInterface $form_stat
$form_state->set('menu_overview_form_parents', []);
}
$form['#attached']['css'] = array(drupal_get_path('module', 'menu') . '/css/menu.admin.css');
$form['#attached']['library'][] = 'menu_ui/drupal.menu_ui.adminforms';
$tree = $this->menuTree->load($this->entity->id(), new MenuTreeParameters());
......
......@@ -68,7 +68,7 @@ public function getDefaultOperations(EntityInterface $entity) {
*/
public function render() {
$build = parent::render();
$build['#attached']['css'][] = drupal_get_path('module', 'menu') . '/css/menu.admin.css';
$build['#attached']['library'][] = "menu_ui/drupal.menu_ui.adminforms";
return $build;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment