Problem/Motivation

When using Adminimal theme and turning the option "Sticky form actions" on, buttons in the field display settings are not displayed.

This problem is caused because the wrappers for buttons which have the class .form-actions are all moved to bottom of the page. This behavior is not desirable for the buttons in each field display setting.

This behavior can be seen for example in /admin/structure/types/manage/[node type]/display.

capture

Proposed resolution

Overwrite the style for buttons in the field display settings to prevent it to be moved to the bottom.

Remaining tasks

  • Create a patch
  • Review the patch

User interface changes

Buttons in each field display setting will be displayed properly in the space.

Original report by ashDn999

I originally posted an issue to Field Group, thinking something was off with that module, as I could not save custom settings in the field group field formatter.

One of the things I did when debugging was had disable the Adminimal theme under the Appearance settings, but I was still having issues. Upon a revisit saw that through Theme by Role, I still had Adminimal set as the theme for the administrator. I switched it to the Seven theme and revisited my content type and I can now save my field formatter settings like normal.

So basically, I have to turn off the Adminimal theme any time I need to update any field formatter settings in my content types: Field Group settings, label formatter settings, etc.

Is there any way this can be fixed? I love your theme and hope this can be fixed so I can use it seamlessly when developing websites.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ashDn999 created an issue. See original summary.

dmsid’s picture

I am having the same issue. Any idea when we can see a fix. Thanks

ashDn999’s picture

I found a temporary fix.

Go to Adminimal settings and uncheck 'Sticky form actions'

Hope this gets fixed. Sticky form actions is a nice feature.

Proteo’s picture

In the meantime, you can activate the adminimal-custom.css file and use this:

/* Unstick form actions in field formatter settings */
body.sticky-actions .field-formatter-settings-edit-form .form-actions.form-wrapper {
  position: static;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 1em 0 !important;
}

It's ugly, I know!

shagren’s picture

Or you can add instead :

body.sticky-actions .field-formatter-settings-edit-form .form-actions.form-wrapper {
 z-index: 999999;
}
hgoto’s picture

Issue summary: View changes

I met this issue, too.

hgoto’s picture

FileSize
113.02 KB
hgoto’s picture

Version: 7.x-1.24 » 7.x-1.x-dev
Issue summary: View changes
Status: Active » Needs review
FileSize
2.1 KB
66.32 KB
62.76 KB
61.71 KB
65.24 KB

Here is a patch along the way Proteo proposed. I'd like someone to review this.

(We need to note that there're 4 skins (Adminimal default, Adminimal dark, Material and Alternative) when creating a patch.)

asya_asina’s picture

Status: Needs review » Reviewed & tested by the community

The patch applied and working.

andrey.troeglazov’s picture

andrey.troeglazov’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.