Fixed
Project:
Drupal core
Version:
11.x-dev
Component:
Admin theme
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
29 Aug 2026 at 17:57 UTC
Updated:
8 Sep 2026 at 11:19 UTC
Jump to comment: Most recent
Followup from #3615331: Invalid ARIA attribute aria-toolbar-link__labelledby on toolbar menus strips their accessible name.
We need to see if menu-region--middle.html.twig and menu-region--top.html.twig are ever in use. If not, we can remove them
NA
Remove menu--region[bottom, middle, top]
None
NA
NA
NA
NA
NA
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
f0ns commentedThey seem to be unused.
All three came in with the Gin merge (
9fc3187d, #3556948) and were never wired up:default_admindeclares nohook_theme(), and itshook_theme_registry_alter()repoints onlytoolbarandmenu__toolbarattemplates/navigation.The navigation module's
hook_theme()registerstop_bar*,block__navigation,navigation_menu,navigation_content_topandnavigation__messages— nomenu_regionbase hook, so there's nothing formenu-region--top/middle/bottomto attach to.Nothing includes them from Twig either.
Worth adding
menu-region--bottom.html.twigto the scope, looks like that is the same situation.Comment #3
f0ns commentedComment #4
smustgrave commentedCan we update the issue summary to still follow the standard issue template please. To include your findings.
Since they're not used probably safe to go ahead and remove them.
Comment #7
longwaveLooks like these two are also unused?
Comment #8
longwaveComment #9
smustgrave commentedCleaned up the summary LGTM.
Comment #10
catchThis doesn't account for #7 - are we going to include those here or open a new issue? For me I'd include them here if they're dead code and just remove 'menu' from the issue title.
Comment #11
f0ns commentedRe #7/#10: the page templates aren't unused in the same way.
These page templates are picked up automatically from the URL.
Visit /group/1 and Drupal looks for page--group.html.twig on its own, no theme hook needed. Core has no /group or /clone paths, but the Group and Quick Node Clone contrib modules do, and both templates apply the node edit layout to those pages.
So deleting them changes how those sites look.
The menu region templates have no such fallback and can never render.
I'd keep this issue to those, and open a separate one for the page templates or add them here if we prefer, but then it's an intentional change for contrib, not just cleanup of unused stuff.
Comment #12
longwaveSupport for contrib modules should not be in core: it's up to contrib modules to provide their own templates. This was different for Gin when it was in contrib, which is where these templates come from.
Comment #13
smustgrave commentedI also marked it fine as I thought since it’s experimental theme we had more leeway
Comment #14
f0ns commentedYou are right.
I've broadened the scope and pushed the removal of page--clone.html.twig and page--group.html.twig to the MR.
It would be good to indeed update the issue title accordingly, since it no longer only covers the menu region templates. Thanks!
Comment #15
f0ns commentedComment #16
f0ns commentedAlso removed input--submit--paragraph-action.html.twig.
It only overrides the input__submit__paragraph_action suggestion, which comes from the contrib Paragraphs module, paragraph_action appears nowhere else in core.
Comment #17
f0ns commentedI also opened #3621155: Remove contrib-specific selectors from the Admin theme CSS as a follow-up. The same contrib leftovers exist in the theme's CSS (Paragraphs, Smart Date, Inline Entity Form, Views Bulk Operations, plus some unused contrib toolbar icons).
Comment #18
smustgrave commentedNice fine, lets ship this one.
Comment #21
amateescu commentedCommitted and pushed 41e2e84c1b4 to main and c24fd0dbd44 to 11.x. Thanks!