From fc8b85b62670b8396cac7fb821c025c58fa77a78 Mon Sep 17 00:00:00 2001 From: Johann-S Date: Wed, 19 Apr 2017 10:59:10 +0200 Subject: [PATCH] Fix some css for the arrow of Popover/Tooltip + update documentation --- docs/components/popovers.md | 4 +- docs/components/tooltips.md | 6 +-- js/src/tooltip.js | 6 +-- scss/_popover.scss | 78 ++++++++++++++++++------------------- scss/_tooltip.scss | 16 ++++---- 5 files changed, 54 insertions(+), 56 deletions(-) diff --git a/docs/components/popovers.md b/docs/components/popovers.md index 71d488fd41..9366ac1a1d 100644 --- a/docs/components/popovers.md +++ b/docs/components/popovers.md @@ -231,12 +231,12 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap template string - '<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>' + '<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'

Base HTML to use when creating the popover.

The popover's title will be injected into the .popover-title.

The popover's content will be injected into the .popover-content.

-

.popover-arrow will become the popover's arrow.

+

.arrow will become the popover's arrow.

The outermost wrapper element should have the .popover class.

diff --git a/docs/components/tooltips.md b/docs/components/tooltips.md index e8a7ce96fb..54f3c448f5 100644 --- a/docs/components/tooltips.md +++ b/docs/components/tooltips.md @@ -136,7 +136,7 @@ You should only add tooltips to HTML elements that are traditionally keyboard-fo