Skip to content

Commit

Permalink
Fix z-index with Bootstrap >= 5.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tkrotoff committed Mar 10, 2023
1 parent 9b15a10 commit 2fabfc5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.12.2 (2023/03/11)

- Fix z-index with Bootstrap >= 5.2.1

## 0.12.1 (2023/03/11)

- Publish only src/ to npm
Expand Down
4 changes: 2 additions & 2 deletions src/bootstrap-floating-label.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ $label-top-position-lg: $label-height-lg * 0.6; // 25px * 0.6 = 15px
// ["An absolutely-positioned child of a flex container does not participate in flex layout"](https://stackoverflow.com/a/41033582)
position: absolute;

// Same z-index as .form-control:focus, https://github.com/twbs/bootstrap/blob/v5.0.0-beta3/scss/forms/_input-group.scss#L23
z-index: 3;
// Same z-index as .form-control:focus, https://github.com/twbs/bootstrap/blob/v5.3.0-alpha1/scss/forms/_input-group.scss#L25
z-index: 5;

// Truncate the text label if larger than the input
max-width: calc(100% - $input-border-width * 2);
Expand Down

0 comments on commit 2fabfc5

Please sign in to comment.