Fix position of browser default validation message (#28852)
This commit is contained in:
parent
1bdeab8159
commit
b165aff2f7
1 changed files with 3 additions and 0 deletions
|
|
@ -21,7 +21,10 @@
|
|||
|
||||
.custom-control-input {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
z-index: -1; // Put the input behind the label so it doesn't overlay text
|
||||
width: $custom-control-indicator-size;
|
||||
height: ($font-size-base * $line-height-base + $custom-control-indicator-size) / 2;
|
||||
opacity: 0;
|
||||
|
||||
&:checked ~ .custom-control-label::before {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue