From 423adaa4075435e530ee26c66721b65e651ac1d9 Mon Sep 17 00:00:00 2001
From: Yan Zhu
Date: Wed, 14 Nov 2018 17:29:51 +0800
Subject: Add multiline Tooltips
---
docs/components/tooltips.html | 14 +++++++++++++-
docs/dist/spectre-rtl.css | 3 ++-
docs/dist/spectre-rtl.min.css | 2 +-
docs/dist/spectre.css | 3 ++-
docs/dist/spectre.min.css | 2 +-
docs/src/components/tooltips.pug | 16 +++++++++++++++-
6 files changed, 34 insertions(+), 6 deletions(-)
(limited to 'docs')
diff --git a/docs/components/tooltips.html b/docs/components/tooltips.html
index 77b551b..ac851e9 100644
--- a/docs/components/tooltips.html
+++ b/docs/components/tooltips.html
@@ -213,7 +213,8 @@
bottom tooltip
- left tooltip
+ left tooltip
Tooltips component is built entirely in CSS.
@@ -223,6 +224,17 @@
<button class ="btn tooltip" data-tooltip ="Lorem ipsum dolor sit amet" > top tooltip</button >
<button class ="btn tooltip tooltip-right" data-tooltip ="Lorem ipsum dolor sit amet" > right tooltip</button >
+
+
+
+
+ multiline tooltip
+
+
+ Add the \n string between any text for multiline tooltips.
+ <button class ="btn tooltip" data-tooltip ="First Line Tooltip Text \n Second Line Tooltip Text" > multiline tooltip</button >