Problem/Motivation

On /admin/structure/display-builder/instances with Gin as admin theme, the filter card has no inner padding: the Context label and select touch the card's left edge.

In modules/display_builder_ui/css/instance-list.css every padding of form.db-list-filter-form and .db-list-filters uses --admin-space-* variables with a 0 fallback. Those variables only exist in the Default Admin theme, so in Gin the padding resolves to 0, although the file's comment says the fallbacks are there for themes without them.

Steps to reproduce

  • Set Gin as admin theme, on 1.0.x.
  • Open /admin/structure/display-builder/instances.
  • The filter fields sit flush against the left edge of the filter card.

On instances list

list filters

On core content list

core list filter

Proposed resolution

Give the padding variables non-zero fallbacks, e.g. padding: var(--admin-space-xs, 0.5rem) var(--admin-space-l, 1.5rem) var(--admin-space-xs, 0.5rem), matching the non-zero fallbacks the margins in the same file already use.

Remaining tasks

  • MR
  • Check the presets list, which shares the same form class (#3631292).

User interface changes

The list filter form gets inner padding in admin themes other than Default Admin.

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

csakiistvan created an issue. See original summary.

csakiistvan’s picture

Assigned: Unassigned » csakiistvan

csakiistvan’s picture

Status: Active » Needs review
StatusFileSize
new644.83 KB

MR is ready for review, pls check

3633766 fix

csakiistvan’s picture

Assigned: csakiistvan » Unassigned
pdureau’s picture

Status: Needs review » Postponed (maintainer needs more info)

I am discovering we have an modules/display_builder_ui/css/instance-list.css 😲. display_builder_ui module is not supposed to have any asset library.

Will this file still needed with #3623275: Replace the instances admin list with a View ? It is still loaded by PatternPresetListBuilder using FilteredListBuilderTrait, but is it really needed?

If no, lets close this one as "Won't fix" and remove the file directly in #3623275: Replace the instances admin list with a View.

pdureau’s picture

Status: Postponed (maintainer needs more info) » Postponed

instance-list.css has been removed in #3623275: Replace the instances admin list with a View

Let's close this ticket.

pdureau’s picture

Status: Postponed » Closed (won't fix)

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.