Skip to content

Commit 66e30c4

Browse files
committed
💄 Improve button consistency in campaign list
- Change follow button to match FOI request style - Clarify follow button text - Change pending request button from warning (yellow) to secondary (gray) for consistent visual language closes fragdenstaat/issues#286
1 parent d178e5d commit 66e30c4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

‎frontend/i18n/campaign-follow.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"en": {
33
"unfollow": "Unfollow",
44
"followed": "Followed",
5-
"follow_q": "Follow?"
5+
"follow_q": "Follow request?"
66
},
77
"de": {
88
"unfollow": "Entfolgen",
99
"followed": "Gefolgt",
10-
"follow_q": "Folgen?"
10+
"follow_q": "Anfrage folgen?"
1111
}
1212
}

‎frontend/javascript/components/campaign-follow.vue‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
</button>
1717
<button
1818
v-else
19-
class="input-large btn hover-btn-success btn-sm"
19+
class="input-large btn btn-outline-primary btn-sm"
2020
@click.stop="doFollow">
2121
<span class="on-hover">
22-
<i class="fa fa-star" aria-hidden="true"></i>
22+
<i class="fa fa-bell" aria-hidden="true"></i>
2323
{{ i18n.follow_q }}
2424
</span>
2525
<span class="on-display">
26-
<i class="fa fa-star-o" aria-hidden="true"></i>
26+
<i class="fa fa-bell-o" aria-hidden="true"></i>
2727
{{ i18n.follow_q }}
2828
</span>
2929
</button>

‎frontend/javascript/components/campaign-list-item.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export default {
107107
},
108108
btnClass() {
109109
if (this.object.resolution === 'pending') {
110-
return 'btn-outline-warning'
110+
return 'btn-outline-secondary'
111111
} else if (this.object.resolution === 'successful') {
112112
return 'btn-outline-success'
113113
} else if (this.object.resolution === 'refused') {

0 commit comments

Comments
 (0)