Problem/Motivation

When merging Gin into core, the sticky actions were tucked into a feature flag. I think we should figure out how to handle this properly, because Drupal CMS already uses this and will want to opt in to the sticky actions to keep the experience consistent.

I believe there are some issues and concerns with the sticky actions as they were implemented in Gin, but I am not sure what they are.

Steps to reproduce

  • Install Drupal 12
  • Add $settings['core_admin_theme_use_sticky_action_buttons'] = 'always'; to settings.php to see the sticky actions behaviour

Proposed resolution

Not sure yet. I definitely want to maintain this feature, so I think we first need to understand what the concerns are so we can decide how to address them.

Remaining tasks

  1. Identify the issues/concerns with sticky actions
  2. Try to address them
  3. Decide how to handle this feature longer term

User interface changes

TBC

Introduced terminology

N/A

API changes

N/A

Data model changes

N/A

Release notes snippet

N/A

Screenshots

These first three screenshots show places where the action is always at the top right:

Then these are comparisons of the same pages with and without:



Issue fork drupal-3630208

Command icon Show commands

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

pameeela created an issue. See original summary.

pameeela’s picture

Issue summary: View changes
jurgenhaas’s picture

Unfortunately, the sticky action buttons have been deferred from being included in default_admin for now. The reason behind it is that (a) there is no UX approval yet, and (b) it's not working reliably as it had been implemented in Gin.

So, for now, that functionality is not even available, so we can't turn it on with config or setting either.

pameeela’s picture

@jurgenhaas oh, when was it removed? I was able to test it using the latest 11.4 release.

jurgenhaas’s picture

@pameeela it never made it into Core. Some buttons do appear in the top bar, which are primary tasks, but not action buttons.

pameeela’s picture

Ahh, I see what you mean. Well, that's better than nothing :)

So what would you see as a good way to move this forward? I am now a bit concerned about this as if it is not implemented that means a pretty major UX change for existing sites when they upgrade to 12. I would love to find a way forward that works for everyone!

jurgenhaas’s picture

Wait, I was wrong. Your hint about the feature flag was absolutely right, and that's in default_admin for all Drupal core versions.

# Default
$settings['core_admin_theme_use_sticky_action_buttons'] = 'never';

You can change never to either always or content_forms to use them just in content edit forms or always. And that's still in main and Drupal 11.x. So, that was the compromise back then to hide this until the UX approval was made available and to keep the code for it around, as it seems to be so close to being perfect.

Major concerns have been, AFAIK:

  • For very wide screens, the way to move the mouse to the far right is bad UX
  • Some people just don't like the idea at all
  • For forms with just one or two input fields, it can be confusing that the action button is not right underneath them

During the Gin-merge we agreed to let this merge finalize and then go through a proper UX-research to decide on how to move it forward.

pameeela’s picture

OK good, I thought I was losing it for a second because I was sure I tested it!

  • For very wide screens, the way to move the mouse to the far right is bad UX
  • Some people just don't like the idea at all

These two points are interesting because even without this enabled the following are still in the top bar:

  • The 'Edit' button when viewing nodes (and Canvas pages)
  • Local tasks
  • The main actions (Preview / Review changes) in the Canvas editor
  • The main actions (Preview / Publish) in the Display Builder UI

Even in Layout Builder the buttons are at the top of the form (under the title which I would say is worse, but still they are not at the bottom).

So I wonder if we can revisit this conversation in light of the current state, which is that many screens already use the top right as the primary call to action, and drill down into the specific concerns?

For forms with just one or two input fields, it can be confusing that the action button is not right underneath them

This is specific but I also find it a little strange. If all forms have their actions in the top right, I don't think this would be confusing?

jurgenhaas’s picture

StatusFileSize
new37.41 KB

I totally agree. I've always been an advocate for the sticky buttons only. My thought is that consistency is the best UX, but then, I'm not an expert.

The confusing bit may be for config forms, not content, e.g. this one:

But even then, I'd go for consistency.

Happy to move this forward again. Earlier this year, it's been @ckrina who was involved, but I'm not sure how much she's still around for this sort of things. Otherwise we would ask Emma to help us out?

emma horrell’s picture

Adding my thoughts here and echoing comments already made - good UX would advocate for consistent placement of the actions where Gin users have come to expect them to be (in the top right). I've watched people use Gin and have observed this expectation.
If there are concerns about clutter in the top right then 'More actions' can take care of that
I don't know the full details but wonder if the wide screen reach issue could be improved by the alignment of actions to to the content container (from the screenshot it looks like they're aligned to the viewport).

yannickoo’s picture

@jurgenhaas wouldn't it be nice to have a way to have both? I am expecting the form actions at the bottom but I am fine with the additional ones at the upper right corner. Is it time to restore the option in the theme settings?

pameeela’s picture

Issue summary: View changes
pameeela’s picture

Added some screenshots to the IS showing the current state with some comparisons.

I have no objection to making this configurable, but I do think it should be sticky by default since that's consistent and would make the most sense to a new user. I think existing users could reasonably prefer the old way so having that supported seems fine.

kentr’s picture

These two points are interesting because even without this enabled the following are still in the top bar:

The 'Edit' button when viewing nodes (and Canvas pages)
Local tasks
The main actions (Preview / Review changes) in the Canvas editor
The main actions (Preview / Publish) in the Display Builder UI

Having things way off to the side is an accessiblity problem for people who use zoom.

Here's a reference that @rkoller has used: https://scottvinkle.com/blogs/work/proximity-and-zoom

I can't speak to Canvas or the Display Builder, but moving the local tasks (which I believe includes the Edit button link) out of the top bar has come up: #3540337-10: Improve visibility of More actions menu button (recording).

In the frontend the More Actions button is required in any way due to the fact that local tasks got moved into the More Actions button to avoid any interferences between the front and backend theme in theming, but in the backend moving those local tasks into the More Actions button is unnecessary and leads to an additional click to reach the list of available options / local task. Moving the local tasks into the More Actions button is also inconsistent with the rest of the admin pages and it removes the ability to see with the glimpse of an eye if for example a content type has revisions enabled, if a node supports translations and so on. Local tasks provide the user the situational awareness and context, and they make those links directly accessible in close proximity to the node edit form where the focus of attention lies - and the local tasks are faster to reach by keyboard, mouse, or pointer device, consistent with the rest of the admin ui, and don't take up that much vertical space anyway.

So our recommendation for a followup would be to move those local tasks out of the More Actions button into local tasks on pages in the admin ui.

it should be sticky by default since that's consistent and would make the most sense to a new user.

I don't think it's consistent with a lot of non-Gin themes that a user could be coming from (for example upgrading core and switching from Claro).

I found the placement & format of the local tasks very confusing when I started using Default Admin. I struggled to 1) get to the Edit page, and then 2) go back to the View page from there.

There are reports of difficulty / confusion from others (one reported complaints from clients):

kentr’s picture

Issue tags: +Accessibility
pameeela’s picture

@kentr I don't want to get sidetracked into the local tasks issue, but I would say that in my experience, having the form actions in the same place makes a lot more sense and I find this much easier to use now. I understand it is a big shift but it's already done and will apply to Claro too once Navigation is enabled.

If people want the old local tasks they can continue to use Claro with Toolbar in contrib, so I don't think we should make this decision based on what people are used to, as they are not forced to change.

The current state is that default_admin already uses top right for actions in many cases, just not form actions yet. As far as I know there is no push to change this. So the suggestion is to make sticky form actions the default for consistency, but allow it to be configured. That is the only part of the behaviour that is relevant to this issue, unless there is push to overhaul this entirely, but we don't have much time for that now.

catch’s picture

kentr’s picture

@pameeela My point with #15 was that, in the context of the form action buttons, the position of the local tasks might not be a good example to follow because their UX has been challenged (partly due to their position).

I believe there are some accessibility problems with moving the form actions to the top right:

  1. Proximity to the last form item, for the sake of people who use zoom:

    https://scottvinkle.com/blogs/work/proximity-and-zoom
    The author says this about the example of poor proximity: "The submit button is on the bottom right, which would be much more difficult to locate than if it were placed on the other side".

    I expect that top right is even worse. This type of proximity problem has come up in other aspects of Drupal's accessibility.

  2. Cognitive accessibility:

    Making Content Usable for People with Cognitive and Learning Disabilities, by the Web Accessibility Initiative (WAI), recommends placing submit buttons at the bottom of forms because that's where users expect them.

  3. Keyboard navigation:

    Having the form buttons in the top bar requires much more tabbing to get to them from the end of the form.

I'm guessing that the cognitive accessibility recommendation's assertion that users expect submit buttons to be at the bottom also applies to fully-abled new users. Curtis Wilcox (@cwilcox808) echoed that the bottom is the most common location for submit buttons.

Based on all of this, I suggest keeping the current behavior as the default.

Regarding consistency, will Drupal's forms in dialogs keep their buttons at the bottom?

In Slack, Justin Furnas (@jfurnas) and Curtis Wilcox suggested making the form actions sticky at the bottom instead of the top.

https://drupal.slack.com/archives/C012J63GVB8/p1787089187961089
https://drupal.slack.com/archives/C2ANFUGGG/p1793030018691879?thread_ts=...

Tagging for accessibility review for the accessibility questions, and I'll ping @mgifford.

jurgenhaas’s picture

I second what @pameeela said in #17. And I want to emphasize, that all the top-right positioning is NOT a thing that comes from default_admin. The local tasks moved there due to navigation and its top bar implementation. Nothing to do with the theme. Users may have been confusing this just because both landed at the same time for them.

The scope of this issue is just whether action buttons should follow there. And the consistency argument was brought up many times. I fall into the same camp. It may be a challenge initially, but once users managed that, their ongoing confusion for inconsistent placement would stay forever. Sticky action buttons everywhere would solve that.

@emma horrell's idea in #10 is an interesting one, though:

I don't know the full details but wonder if the wide screen reach issue could be improved by the alignment of actions to to the content container (from the screenshot it looks like they're aligned to the viewport).

This would also not be something to be addressed by default_admin, but by the top bar in navigation. But doing it there would then govern the position of sticky action buttons as well.

alyssapanetta’s picture

Glad this will a configurable option, but from a cognitive accessibility standpoint, I agree with KentR in #19 that we should keep the current behavior as the default and make 'sticky' the alternative.

Consider our target audience
If we're trying to open Drupal CMS to more (and less technical) users, we should be prioritizing their ease-of-use, which means keeping the cognitive load of using Drupal CMS as low as possible. A key to that is capitalizing on their germane cognitive load, which means the default should match users' existing schema -- which, since they're new to Drupal, were established from other websites they've used.

User research is the only way to know what's part of users' germane knowledge, but existing research tells us that their attention 'leans left,' with 80% of viewing time spent to the left half of the page and only 20% on the right half (2017, up from 69% v 30% in 2010). The quote below suggests that moving the Save button to the right increases the 'amount of work and time to find information' (aka intrinsic cognitive load).

Should you deviate from convention, understand that it is a risk which may jeopardize the effectiveness and persuasiveness of your content. Users will look for information where they expect it to be in a conventional layout. If that content isn’t there, the consequential search they will embark on will increase the amount of work and time to find information.

We don't want new users to give up...
The Microsoft Inclusive Design for Cognition Guidebook tells us

For any task to be successful, motivation must equal or surpass cognitive load.

By that, if a new user is motivated enough to try Drupal CMS and then gets overwhelmed trying to find a "Save" button -- they may give up on Drupal entirely.

Additional Issue: Discoverability of Option
If 'sticky' is the default and a new user wants to update that option, they'll need to find the UI setting, which is likely to be buried, creating another task, increasing the cognitive load and likelihood of abandonment. An experienced user will have less trouble finding and changing it.

pameeela’s picture

Issue summary: View changes
StatusFileSize
new189.24 KB

I've updated the IS to try to clarify: Drupal CMS already uses sticky actions and has since day 1 because we use Gin and it is the default.

The reason I created this issue is that I don't want the experience for existing sites to change when they switch to default_admin because I think that would be confusing.

I am not sure that using the container width will help much because for most admin pages, the container stretches to the end anyway:

gábor hojtsy’s picture

Looks like there is a lot of contentions viewpoints on this. Would moving the settings.php setting to a proper theme setting shippable with configuration solve this for Drupal CMS @pameela. Based on a Slack thread this looks like a blocker for adopting Default Admin in Drupal CMS, which is quite unfortunate.

jurgenhaas’s picture

This is certainly possible and a small change only. We had been asked to remove it from there as part of the Gin-merge into core, but in light of this issue it should make sense to bring it back.

pameeela’s picture

Thanks, I would be totally happy with a theme setting :)

rgpublic’s picture

If you need more encouragement for the config option: +1 from me as well. We've switched all of our customers over to GIN in preparation of this theme becoming the future standard. Now, they are all used to the new sticky actions and like it, because they can now just do some change and immediately click on save without scrolling all the way to the bottom which is pretty tedious depending on the length of the page.

It would be very difficult to explain why we're taking that option away again. Personally, I like it a lot as well and think it makes things easier. I was actually quite confused why it was gone until I found this issue here. Having a config option would really help here. First and foremost for visbility of this feature and specifically for us because we have good processes in place to set and deploy config. Changing the settings file for all these websites would be much more of a hassle.

jurgenhaas’s picture

Status: Active » Needs review

I pushed an MR that moves the sticky action buttons from the settings.php flag to a Default Admin theme setting, as agreed in #23 - #25. "Enable sticky action buttons" is on the theme settings form, defaults to off, and can be deployed with config. Users can override it on their profile when user overrides are allowed, like the other Default Admin settings.

The setting is a boolean and works like Gin's: enabled means sticky action buttons on all forms. The settings.php flag is no longer read. A post update keeps existing opt-ins: sites with always or content_forms get the setting enabled, which extends content_forms sites to non-content forms.

Nothing changes for sites without the flag. Drupal CMS can ship sticky_action_buttons: true in its config. Test coverage and local verification details are in the attached 2026-10-30-15-34-summary.md.

The test failures are unrelated.

AI-Generated: Yes (agent implemented the change and tests, and drafted this comment; reviewed by @jurgenhaas).

needs-review-queue-bot’s picture

Status: Needs review » Needs work
StatusFileSize
new1.52 KB

The Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.

Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

jurgenhaas’s picture

Status: Needs work » Needs review

I've rebased the MR, back to NR