Skip to content

Commit

Permalink
Fix form validation tooltip alignment (#31557)
Browse files Browse the repository at this point in the history
* Fix form validation tooltip alignment

* Remove CSS hacks

* Update _forms.scss

Co-authored-by: Gaël Poupard <ffoodd@users.noreply.github.com>
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
  • Loading branch information
3 people committed Oct 30, 2020
1 parent 23cf931 commit 71e5b7c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scss/mixins/_forms.scss
Expand Up @@ -64,6 +64,13 @@
color: color-yiq($color);
background-color: rgba($color, $form-feedback-tooltip-opacity);
@include border-radius($form-feedback-tooltip-border-radius);

// See https://github.com/twbs/bootstrap/pull/31557
// Align tooltip to form elements
.form-row > .col > &,
.form-row > [class*="col-"] > & {
left: $form-grid-gutter-width / 2;
}
}

@include form-validation-state-selector($state) {
Expand Down

0 comments on commit 71e5b7c

Please sign in to comment.