Lighten and add tooltips to "delete tag" buttons.
authorTom Clegg <tom@curoverse.com>
Sun, 16 Feb 2014 10:58:28 +0000 (02:58 -0800)
committerTom Clegg <tom@curoverse.com>
Sun, 16 Feb 2014 10:58:28 +0000 (02:58 -0800)
apps/workbench/app/assets/javascripts/application.js
apps/workbench/app/assets/stylesheets/application.css.scss
apps/workbench/app/views/collections/_index_tbody.html.erb

index cb20b3289683073f88208f3f4a6819c4f3c21bcb..dc7177060ed3e085756837e664368e400d6945cc 100644 (file)
@@ -78,7 +78,7 @@ jQuery(function($){
                 attr('data-tag-link-uuid', new_tag_uuid).
                 text(new_tag).
                 css('opacity', '0.2').
-                append('&nbsp;<a><i class="glyphicon glyphicon-trash"></i></a>&nbsp;');
+                append('&nbsp;<a title="Delete tag"><i class="glyphicon glyphicon-trash"></i></a>&nbsp;');
             $(this).
                 parent().
                 find('>span').
index 5ee950803cb84023e5ff84e2d9c45a85277c07dc..7d241addf8f89739fe668f63813b3b0ce519b1f9 100644 (file)
@@ -140,6 +140,7 @@ td.add-tag-button .add-tag-button:hover {
     margin-top: .2em;
 }
 .label.removable-tag a {
+    color: #fff;
     cursor: pointer;
 }
 
index 19a13ed9a247bab13639ef00ac2f022f627bfa9b..258b00b01c6bdee89f9cdd0ec9711fb079651c52 100644 (file)
@@ -36,7 +36,7 @@
       <% @collection_info[c.uuid][:tag_links].each do |tag_link| %>
         <span class="label label-info removable-tag" data-tag-link-uuid="<%= tag_link.uuid %>"><%= tag_link.name %>
           <% if tag_link.owner_uuid == current_user.uuid %>
-          &nbsp;<a><i class="glyphicon glyphicon-trash"></i></a>
+          &nbsp;<a title="Delete tag"><i class="glyphicon glyphicon-trash"></i></a>
           <% end %>
         </span>
       <% end %>