Skip to content

Commit 0bec1c8

Browse files
authored
Add new variables for form feedback tooltips (#26959)
Fixes #26886
1 parent f9142bd commit 0bec1c8

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

scss/_variables.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -782,6 +782,14 @@ $tooltip-arrow-width: .8rem !default;
782782
$tooltip-arrow-height: .4rem !default;
783783
$tooltip-arrow-color: $tooltip-bg !default;
784784

785+
// Form tooltips must come after regular tooltips
786+
$form-feedback-tooltip-padding-y: $tooltip-padding-y !default;
787+
$form-feedback-tooltip-padding-x: $tooltip-padding-x !default;
788+
$form-feedback-tooltip-font-size: $tooltip-font-size !default;
789+
$form-feedback-tooltip-line-height: $line-height-base !default;
790+
$form-feedback-tooltip-opacity: $tooltip-opacity !default;
791+
$form-feedback-tooltip-border-radius: $tooltip-border-radius !default;
792+
785793

786794
// Popovers
787795

scss/mixins/_forms.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@
4141
z-index: 5;
4242
display: none;
4343
max-width: 100%; // Contain to parent when possible
44-
padding: $tooltip-padding-y $tooltip-padding-x;
44+
padding: $form-feedback-tooltip-padding-y $form-feedback-tooltip-padding-x;
4545
margin-top: .1rem;
46-
font-size: $tooltip-font-size;
47-
line-height: $line-height-base;
46+
font-size: $form-feedback-tooltip-font-size;
47+
line-height: $form-feedback-tooltip-line-height;
4848
color: color-yiq($color);
49-
background-color: rgba($color, $tooltip-opacity);
50-
@include border-radius($tooltip-border-radius);
49+
background-color: rgba($color, $form-feedback-tooltip-opacity);
50+
@include border-radius($form-feedback-tooltip-border-radius);
5151
}
5252

5353
.form-control {

0 commit comments

Comments
 (0)