Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too little margin between Admin bar and Breadcrumb #119

Closed
olafgrabienski opened this issue Mar 5, 2024 · 1 comment
Closed

Too little margin between Admin bar and Breadcrumb #119

olafgrabienski opened this issue Mar 5, 2024 · 1 comment

Comments

@olafgrabienski
Copy link
Member

After an update to Gin alpha 10, I noticed a small visual regression on my Backdrop sites: The margin between Admin bar and Breadcrumb is smaller than before – see screenshot below.

The following CSS definition from gin/dist/css/components/toolbar_secondary.css that apply to the <header> element, which contains the Breadcrumb, might be related:

.gin-secondary-toolbar {
  z-index: 100;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: var(--gin-spacing-xs);
  padding-bottom: var(--gin-spacing-xs);
  margin-top: -1px;
  height: var(--gin-toolbar-secondary-height);
  border-bottom: 1px solid var(--gin-border-color-secondary);
  box-sizing: border-box;
}

When I disable the line height: var(--gin-toolbar-secondary-height); in my browser dev tools, the issue is fixed for me. When I enable it again, the height of the element is 0 (zero).


Screenshot:

@laryn
Copy link
Member

laryn commented Mar 9, 2024

Good catch -- I think in Drupal the defaults were all set to zero to make them easier to set based on the menu/nav style chosen, but since we don't have multiple nav styles to choose from at the moment in Backdrop, it threw things off a bit. I've made a fix for now.

@laryn laryn closed this as completed in e68b049 Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants