You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by db...@apache.org on 2015/09/01 20:44:48 UTC

[4/4] docs commit: Added title text for the icons in plugin cards. This closes #325.

Added title text for the icons in plugin cards. This closes #325.


Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/358857eb
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/358857eb
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/358857eb

Branch: refs/heads/cordova-website
Commit: 358857eb37710c6a75139b7b137d33b4a2e5af18
Parents: 4fdd56b
Author: riknoll <ri...@microsoft.com>
Authored: Mon Aug 31 13:14:29 2015 -0700
Committer: Dmitry Blotsky <dm...@gmail.com>
Committed: Tue Sep 1 11:44:29 2015 -0700

----------------------------------------------------------------------
 www/static/plugins/supportedplatforms.jsx | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/358857eb/www/static/plugins/supportedplatforms.jsx
----------------------------------------------------------------------
diff --git a/www/static/plugins/supportedplatforms.jsx b/www/static/plugins/supportedplatforms.jsx
index 9891815..cc9c6be 100755
--- a/www/static/plugins/supportedplatforms.jsx
+++ b/www/static/plugins/supportedplatforms.jsx
@@ -5,14 +5,14 @@ var SupportedPlatforms = React.createClass({
     render: function() {
         var keywords = this.props.keywords;
         var sortedPlatforms = [
-            {present:false, icon: "android"},
-            {present:false, icon: "ios"},
-            {present:false, icon: "windows"},
-            {present:false, icon: "blackberry"},
-            {present:false, icon: "ubuntu"},
-            {present:false, icon: "firefox"},
-            {present:false, icon: "webos"},
-            {present:false, icon: "fireos"}
+            {present:false, icon: "android", alt:"Android"},
+            {present:false, icon: "ios", alt:"iOS"},
+            {present:false, icon: "windows", alt:"Windows"},
+            {present:false, icon: "blackberry", alt:"Blackberry"},
+            {present:false, icon: "ubuntu", alt:"Ubuntu"},
+            {present:false, icon: "firefox", alt:"FirefoxOS"},
+            {present:false, icon: "webos", alt:"webOS"},
+            {present:false, icon: "fireos", alt:"FireOS"}
         ];
 
         var platformsSupported = [];
@@ -58,7 +58,9 @@ var SupportedPlatforms = React.createClass({
 
         sortedPlatforms.forEach(function(platform) {
             if(platform.present) {
-                platformsSupported.push(<li><div className={platform.icon}></div></li>)
+                // Becuase these images are taken from a sprite sheet, we have
+                // to use title rather than alt-text
+                platformsSupported.push(<li><div className={platform.icon} title={platform.alt}></div></li>)
             }
         });
         return (


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org