Skip to content

Commit

Permalink
Fix choices z-index in Django admin
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanw committed May 6, 2024
1 parent bf4caaa commit 89d7676
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/styles/components/tagautocomplete.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ $choices-icon-cross: none;

.#{$choices-selector} {
width: 100%;
// Bootstrap level $zindex-dropdown but +1 to be higher than leaflet map controls
z-index: 1001;
}

.form-row:has(.choices__list) {
Expand All @@ -39,8 +41,8 @@ $choices-icon-cross: none;

.#{$choices-selector}__list--dropdown .#{$choices-selector}__item--selectable.is-highlighted,
.#{$choices-selector}__list[aria-expanded] .#{$choices-selector}__item--selectable.is-highlighted {
background-color: var(--#{$prefix}body-bg);
z-index: 1001;
// Bootstrap background body and fall back to Django admin background body
background-color: var(--#{$prefix}body-bg, var(--body-bg));
}

.#{$choices-selector}__inner, .#{$choices-selector}__list {
Expand Down

0 comments on commit 89d7676

Please sign in to comment.