Skip to content

Commit 76b1d3f

Browse files
CopilotAllanKoder
andauthored
Add orange theme styling for count badge on "everything" tag (#56)
* Initial plan * Add orange-themed styling for count badge on 'everything' tag Co-authored-by: AllanKoder <74692833+AllanKoder@users.noreply.github.com> * Add explicit handling for 'selected' variant in count badge styling Co-authored-by: AllanKoder <74692833+AllanKoder@users.noreply.github.com> * Consolidate duplicate styling logic for highlighted and selected variants Co-authored-by: AllanKoder <74692833+AllanKoder@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: AllanKoder <74692833+AllanKoder@users.noreply.github.com>
1 parent 81c53d6 commit 76b1d3f

1 file changed

Lines changed: 21 additions & 3 deletions

File tree

resources/js/Components/Tag.vue

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,26 @@ const iconClasses = computed(() => {
6464
}
6565
return props.variant === 'selected' ? 'text-primaryDark dark:text-white' : '';
6666
});
67+
68+
const countClasses = computed(() => {
69+
if (isEverything.value) {
70+
// Orange theme for "everything" tag count
71+
if (props.variant === 'highlighted' || props.variant === 'selected') {
72+
return 'bg-orange-200 text-orange-800 dark:bg-orange-800 dark:text-orange-200';
73+
} else {
74+
return 'bg-orange-200 text-orange-700 dark:bg-orange-800 dark:text-orange-300';
75+
}
76+
}
77+
78+
// Default gray theme for regular tags
79+
if (props.variant === 'highlighted') {
80+
return 'bg-secondary text-primaryDark dark:bg-gray-800 dark:text-primaryLight';
81+
} else if (props.variant === 'selected') {
82+
return 'bg-gray-200 text-gray-700 dark:bg-gray-800 dark:text-gray-300';
83+
} else {
84+
return 'bg-gray-100 text-gray-600 dark:bg-gray-900 dark:text-gray-300';
85+
}
86+
});
6787
</script>
6888

6989
<template>
@@ -89,9 +109,7 @@ const iconClasses = computed(() => {
89109
<span
90110
v-if="count !== null"
91111
class="ml-1.5 text-xs px-2 py-1 rounded-full"
92-
:class="variant === 'highlighted'
93-
? 'bg-secondary text-primaryDark dark:bg-gray-800 dark:text-primaryLight'
94-
: 'bg-gray-100 text-gray-600 dark:bg-gray-900 dark:text-gray-300'"
112+
:class="countClasses"
95113
>
96114
{{ count }}
97115
</span>

0 commit comments

Comments
 (0)