Problem/Motivation
Views UI tabs are currently rendered using menu-local-task.html.twig in combination with duplicating contents of menu-local-tasks.html.twig in a #prefix and #suffix. Even though there's some similarities between the markup generated for these elements, design wise they are different.
The current solution is prone to errors since frontend developers theming local tasks would be unlikely to take into account that Views UI uses these templates for generating its markup.
Proposed resolution
Create a new template for rendering Views UI tabs. Change the markup so that it's unique to the Views UI by renaming tabs to views-tabs.
Comments
Comment #2
lauriiiComment #3
lauriiiI also found
Drupal.behaviors.viewsUiRenderAddViewButtonwhich does some markup preprocessing. We could probably remove that as well. Since that is tightly coupled to the tabs, my recommendation is to refactor that in this issue as well.Comment #4
lauriiiComment #5
manuel garcia commentedComment #6
quironAs long this is part of the Admin UI Modernisation initiative, after talking with @ckrina I mark it as Needs design to clarify the final UI of this element.