Skip to content

Commit a0fbceb

Browse files
committed
style: update tag expansion button styling and text capitalization in blog and archive cards
1 parent 3929c9d commit a0fbceb

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

components/archive/card.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,13 @@ const buttonLabel = computed(() =>
111111
</template>
112112
<button
113113
v-if="props.tags.length > 2"
114-
class="bg-gray-200 text-gray-700 px-2 py-1 rounded-full text-sm hover:bg-gray-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-hoppr-purple"
114+
class="inline-flex items-center justify-center bg-hoppr-purple/10 text-hoppr-purple rounded-md px-2 pb-0 text-[0.65rem] font-bold uppercase tracking-widest shadow-sm leading-normal hover:bg-hoppr-purple/20 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-hoppr-purple transition-colors duration-300 dark:bg-purple-500/20 dark:text-purple-200 dark:hover:bg-purple-500/30"
115+
style="padding-top: 0.25em"
115116
:aria-expanded="showAllTags"
116117
:aria-label="buttonLabel"
117118
@click="toggleTags"
118119
>
119-
<span>{{ showAllTags ? 'Moins' : `+${remainingTagsCount}` }}</span>
120+
{{ showAllTags ? 'MOINS' : `+${remainingTagsCount}` }}
120121
</button>
121122
</div>
122123
</div>

components/blog/card.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,13 @@ const buttonLabel = computed(() =>
105105
</template>
106106
<button
107107
v-if="props.tags.length > 2"
108-
class="bg-gray-200 text-gray-700 px-2 py-1 rounded-full text-sm hover:bg-gray-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-hoppr-purple"
108+
class="inline-flex items-center justify-center bg-hoppr-purple/10 text-hoppr-purple rounded-md px-2 pb-0 text-[0.65rem] font-bold uppercase tracking-widest shadow-sm leading-normal hover:bg-hoppr-purple/20 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-hoppr-purple transition-colors duration-300 dark:bg-purple-500/20 dark:text-purple-200 dark:hover:bg-purple-500/30"
109+
style="padding-top: 0.25em"
109110
:aria-expanded="showAllTags"
110111
:aria-label="buttonLabel"
111112
@click="toggleTags"
112113
>
113-
{{ showAllTags ? 'Moins' : `+${remainingTagsCount}` }}
114+
{{ showAllTags ? 'MOINS' : `+${remainingTagsCount}` }}
114115
</button>
115116
</div>
116117
</div>

0 commit comments

Comments
 (0)