From f76fbb8901e71b38d18735a1223603157689b888 Mon Sep 17 00:00:00 2001 From: Jörn Zaefferer Date: Wed, 9 May 2012 22:14:34 +0200 Subject: Tooltip: Make demos more accessible (and less stupid, in case of the forms demo). Fixes #7842 --- demos/tooltip/custom-content.html | 6 ++++-- demos/tooltip/forms.html | 33 +++++++++------------------------ 2 files changed, 13 insertions(+), 26 deletions(-) (limited to 'demos') diff --git a/demos/tooltip/custom-content.html b/demos/tooltip/custom-content.html index d6ce27f69..3b3308153 100644 --- a/demos/tooltip/custom-content.html +++ b/demos/tooltip/custom-content.html @@ -30,9 +30,11 @@ content: function() { var element = $( this ); if ( element.is( "[data-geo]" ) ) { - return "" + text +
+						""; + text + "'>"; } if ( element.is( "[title]" ) ) { return element.attr( "title" ); diff --git a/demos/tooltip/forms.html b/demos/tooltip/forms.html index ec01396a7..6440bf89e 100644 --- a/demos/tooltip/forms.html +++ b/demos/tooltip/forms.html @@ -27,26 +27,14 @@ @@ -58,18 +46,15 @@
- - ? +
- - ? +
- - ? +
@@ -79,7 +64,7 @@
-

Use the button below to display the help texts. Click again to hide them. Default hover and focus events are removed to show tooltip only programmatically.

+

Use the button below to display the help texts, or just focus or mouseover the indivdual inputs.

A fixed width is defined in CSS to make the tooltips look consistent when displayed all at once.

-- cgit v1.2.3