Skip to content

Commit 2fabfc5

Browse files
committed
Fix z-index with Bootstrap >= 5.2.1
1 parent 9b15a10 commit 2fabfc5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.12.2 (2023/03/11)
2+
3+
- Fix z-index with Bootstrap >= 5.2.1
4+
15
## 0.12.1 (2023/03/11)
26

37
- Publish only src/ to npm

src/bootstrap-floating-label.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ $label-top-position-lg: $label-height-lg * 0.6; // 25px * 0.6 = 15px
6262
// ["An absolutely-positioned child of a flex container does not participate in flex layout"](https://stackoverflow.com/a/41033582)
6363
position: absolute;
6464

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

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

0 commit comments

Comments
 (0)