From ca9ef62a8de7f8b8cffe0420ab46efa8cd745f19 Mon Sep 17 00:00:00 2001 From: Daniel Ramirez Date: Wed, 24 May 2017 19:50:53 -0700 Subject: [PATCH] Closes #10057: Makes tooltips fluid width --- scss/components/_tooltip.scss | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scss/components/_tooltip.scss b/scss/components/_tooltip.scss index 477f7d26f..bfd3c82a5 100644 --- a/scss/components/_tooltip.scss +++ b/scss/components/_tooltip.scss @@ -30,6 +30,10 @@ $tooltip-color: $white !default; /// @type Number $tooltip-padding: 0.75rem !default; +/// Default max width for tooltips. +/// @type Number +$tooltip-max-width: 100% !default; + /// Default font size of the tooltip text. By default, we recommend a smaller font size than the body copy. /// @type Number $tooltip-font-size: $small-font-size !default; @@ -60,7 +64,7 @@ $tooltip-radius: $global-radius !default; top: calc(100% + #{$tooltip-pip-height}); z-index: 1200; - max-width: 100%; + max-width: $tooltip-max-width; padding: $tooltip-padding; border-radius: $tooltip-radius; -- 2.47.2