Skip to content

Commit

Permalink
[HxAutosuggest] Validation messages overlay fix - z-indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
crdo committed Jan 9, 2024
1 parent 2af4716 commit 832de25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,6 @@
position: relative;
}

/* Unfocused input z-index: 4 same as Bootstrap form-controls */
.input-group .hx-autosuggest-input.is-invalid:not(:focus) {
z-index: 4;
}

/* Bring the "active" form control to the top of surrounding elements */
.input-group .hx-autosuggest-input:focus {
z-index: 5;
}

.form-control.is-invalid {
background-position: center right 2.5rem;
padding-right: 4.125rem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
top: 50%;
right: 0;
transform: translateY(-50%);
z-index: 5;
}

.hx-autosuggest-input-wrapper:focus-within {
z-index: 6;
}

.input-group .hx-autosuggest-input-wrapper {
Expand All @@ -32,7 +35,4 @@

.hx-autosuggest-input-icon div[role="button"]:not(:hover) ::deep .hx-icon {
opacity: var(--hx-autosuggest-input-close-icon-opacity);
}
::deep .form-floating > label {
z-index: 20;
}

0 comments on commit 832de25

Please sign in to comment.