Skip to content

Commit

Permalink
nullify margin variable and add deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoSot committed Aug 23, 2021
1 parent 6b308a3 commit a782de9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scss/_tooltip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
.tooltip {
z-index: $zindex-tooltip;
display: block;
margin: $tooltip-margin;
@include deprecate("`$tooltip-margin`", "v5", "v5.x", );
// Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
// So reset our font and text properties to avoid inheriting weird values.
@include reset-text();
Expand Down
1 change: 1 addition & 0 deletions scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1315,6 +1315,7 @@ $tooltip-border-radius: $border-radius !default;
$tooltip-opacity: .9 !default;
$tooltip-padding-y: $spacer * .25 !default;
$tooltip-padding-x: $spacer * .5 !default;
$tooltip-margin: null !default;

$tooltip-arrow-width: .8rem !default;
$tooltip-arrow-height: .4rem !default;
Expand Down

0 comments on commit a782de9

Please sign in to comment.