Skip to content
This repository was archived by the owner on Jul 8, 2025. It is now read-only.

Commit 32af5eb

Browse files
authored
[SHARE-634][Improvement] Clickable tags (#190)
* Make tags clickable * Remove underlines from pagination
1 parent ce8e31e commit 32af5eb

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
a {
2+
text-decoration: none;
3+
}

app/components/search-result/style.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// minumum gray contrast that meets WCAG 2.0 AA/AAA standards
22
$default-text-color: #4f5050;
3+
// use for hover on buttons and dark text
4+
$darkest-color: #222;
35
// bright blue
46
$default-text-color-active: #337ab7;
57
// dark blue
@@ -50,6 +52,13 @@ $default-link-hover-color: #23527c;
5052
border: 1px solid #ccc;
5153
padding: 2px 4px 2px 4px;
5254
margin: 4px 4px 4px 0px;
55+
text-decoration: none;
56+
}
57+
58+
.tag:hover {
59+
color: $darkest-color;
60+
border: 1px solid $darkest-color;
61+
cursor: pointer;
5362
}
5463

5564
.worktype {

app/components/search-result/template.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@
5858
<div class="row default-line-padding default-cursor">
5959
<div class="col-xs-12">
6060
{{#each tags as |tag|}}
61-
<span class='tag'>
61+
<a class="tag" {{action 'addFilter' 'tags' tag}}>
6262
{{tag}}
63-
</span>
63+
</a>
6464
{{/each}}
6565
{{#if extraTags}}
6666
<span class="text-muted">+{{extraTags.length}}</span>

0 commit comments

Comments
 (0)