Skip to content

Commit 979802c

Browse files
committed
Add new variables for form feedback tooltips
Fixes #26886
1 parent ba25e38 commit 979802c

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

scss/_variables.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,13 @@ $form-feedback-font-size: $small-font-size !default;
577577
$form-feedback-valid-color: theme-color("success") !default;
578578
$form-feedback-invalid-color: theme-color("danger") !default;
579579

580+
$form-feedback-tooltip-padding-y: $tooltip-padding-y !default;
581+
$form-feedback-tooltip-padding-x: $tooltip-padding-x !default;
582+
$form-feedback-tooltip-font-size: $tooltip-font-size !default;
583+
$form-feedback-tooltip-line-height: $line-height-base !default;
584+
$form-feedback-tooltip-opacity: $tooltip-opacity !default;
585+
$form-feedback-tooltip-border-radius: $tooltip-border-radius !default;
586+
580587

581588
// Dropdowns
582589
//

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-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)