Skip to content

Commit f3b30a4

Browse files
committed
web: drop duplicated dark text classes
1 parent 2810ddd commit f3b30a4

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎web/src/App.vue‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function label(key: string): string {
7878

7979
<main>
8080
<p v-if="error" class="px-6 text-bad">Could not load compatibility data: {{ error }}</p>
81-
<p v-else-if="!document" class="px-6 text-neutral-500 dark:text-neutral-400 dark:text-neutral-400">Loading…</p>
81+
<p v-else-if="!document" class="px-6 text-neutral-500 dark:text-neutral-400">Loading…</p>
8282
<template v-else>
8383
<CompatGrid v-model:open="open" v-model:expanded="expanded" :document="document" :query="query" :show-prereleases="showPrereleases" />
8484

@@ -92,7 +92,7 @@ function label(key: string): string {
9292
<strong :class="advisory.severity === 'error' ? 'text-bad' : 'text-advisory'">
9393
<code>{{ advisory.package }}</code> {{ advisory.affects }}
9494
</strong>
95-
<span class="text-neutral-500 dark:text-neutral-400 dark:text-neutral-400"> when </span>
95+
<span class="text-neutral-500 dark:text-neutral-400"> when </span>
9696
<span v-for="(range, key, index) in advisory.when" :key="key">
9797
<template v-if="index > 0">, </template>{{ label(key) }} <code>{{ range }}</code>
9898
</span>

‎web/src/components/CellDetails.vue‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ function shortDate(version: string): string {
7474
<strong>{{ label }}</strong>
7575
<template v-if="summary.rawRange">
7676
{{ " " }}declared <code>{{ summary.rawRange }}</code>
77-
<span class="text-neutral-500 dark:text-neutral-400 dark:text-neutral-400"> ({{ sourceText }})</span>
77+
<span class="text-neutral-500 dark:text-neutral-400"> ({{ sourceText }})</span>
7878
</template>
79-
<span v-else class="text-neutral-500 dark:text-neutral-400 dark:text-neutral-400"> no requirement {{ sourceText === "nothing published" ? "published" : "found" }}</span>
79+
<span v-else class="text-neutral-500 dark:text-neutral-400"> no requirement {{ sourceText === "nothing published" ? "published" : "found" }}</span>
8080
<span v-if="summary.verified.length" class="text-ok"> · verified by CI with {{ summary.verified.join(", ") }}</span>
8181
</p>
8282

@@ -125,7 +125,7 @@ function shortDate(version: string): string {
125125
<StateIcon :state="item.cell.state" :size="14" class="mt-0.5" />
126126
<span>
127127
<strong :class="LABEL[item.cell.state]">{{ label }} {{ item.version }}<template v-if="item.prerelease"> beta</template></strong>
128-
<span class="text-neutral-500 dark:text-neutral-400 dark:text-neutral-400"> · </span>
128+
<span class="text-neutral-500 dark:text-neutral-400"> · </span>
129129
<template v-if="item.cell.advisory">
130130
{{ item.cell.advisory.message }}
131131
<em v-if="item.cell.advisory.fix" class="ml-1">{{ item.cell.advisory.fix }}</em>

‎web/src/components/CompatGrid.vue‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ const headCell = `sticky z-10 bg-neutral-50 text-center font-semibold dark:bg-ne
112112
class="border-b border-neutral-200 bg-sky-50/70 px-6 py-2 text-left font-semibold dark:border-neutral-700/80 dark:bg-sky-900/25"
113113
>
114114
<code>{{ group.name }}</code>
115-
<span class="ml-2 text-xs font-normal text-neutral-500 dark:text-neutral-400 dark:text-neutral-400">{{ group.total }} releases</span>
115+
<span class="ml-2 text-xs font-normal text-neutral-500 dark:text-neutral-400">{{ group.total }} releases</span>
116116
</th>
117117
</tr>
118118
<template v-for="version in group.visible" :key="version">
@@ -174,6 +174,6 @@ const headCell = `sticky z-10 bg-neutral-50 text-center font-semibold dark:bg-ne
174174
</tr>
175175
</tbody>
176176
</table>
177-
<p v-if="!groups.length" class="px-6 py-4 text-neutral-500 dark:text-neutral-400 dark:text-neutral-400">No releases match.</p>
177+
<p v-if="!groups.length" class="px-6 py-4 text-neutral-500 dark:text-neutral-400">No releases match.</p>
178178
</div>
179179
</template>

0 commit comments

Comments
 (0)