Skip to content

Commit

Permalink
Better UI feedback for filters
Browse files Browse the repository at this point in the history
Added X on hover to signal closing
Added title that explicitly says that click will remove
Added :hover state for better interaction
  • Loading branch information
piatra committed Apr 14, 2014
1 parent bae2bdc commit 4aaf2fd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions dashboard/css/style.css
Expand Up @@ -628,3 +628,26 @@ body {
opacity: 0.4;
margin-left: 0.5rem;
}

.js-handler--timeline-filters {
padding: 0;
margin: 0;
}

.timeline-filter--item {
border: 1px solid #444;
border-radius: 3px;
padding: .5rem;
margin: .5rem 0;
list-style: none;
cursor: pointer;
}

.timeline-filter--item:hover {
background: #444;
}

.timeline-filter--item:hover:after {
content: "\00d7";
margin: 0 .5rem;
}
2 changes: 1 addition & 1 deletion dashboard/index.html
Expand Up @@ -369,7 +369,7 @@ <h6 class="graph-title">No milestones</h6>
</script>

<script id="timeline-filter-item" type="text/x-handlebars-template">
<li class="timeline-filter--item"> {{ name }}</li>
<li class="timeline-filter--item" title="click to remove"> {{ name }}</li>
</script>

<script src="/js/jquery.js"></script>
Expand Down

0 comments on commit 4aaf2fd

Please sign in to comment.