Skip to content

Commit da87583

Browse files
committed
fix: use ButtonGroup
1 parent a657211 commit da87583

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

app/pages/compare.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,10 @@ useSeoMeta({
282282

283283
<div v-else-if="packagesData && packagesData.some(p => p !== null)">
284284
<!-- View tabs -->
285-
<div
286-
class="inline-flex items-center gap-1 rounded-md border border-border-subtle bg-bg-subtle p-0.5 mt-4"
285+
<ButtonGroup
287286
role="tablist"
288287
:aria-label="$t('compare.packages.section_comparison')"
288+
class="inline-flex mt-4 rounded-md border border-border-subtle bg-bg-subtle p-0.5"
289289
>
290290
<button
291291
id="comparison-tab-table"
@@ -294,7 +294,7 @@ useSeoMeta({
294294
:aria-selected="comparisonView === 'table' ? 'true' : 'false'"
295295
aria-controls="comparison-panel-table"
296296
:tabindex="comparisonView === 'table' ? -1 : 0"
297-
class="flex items-center justify-center gap-x-2 rounded px-3 py-2 font-mono text-sm border border-solid transition-colors duration-150 focus-visible:outline-accent/70"
297+
class="flex items-center justify-center gap-x-2 px-3 py-2 font-mono text-sm border border-solid transition-colors duration-150 focus-visible:outline-accent/70"
298298
:class="
299299
comparisonView === 'table'
300300
? 'bg-bg border-border shadow-sm text-fg'
@@ -313,7 +313,7 @@ useSeoMeta({
313313
:aria-selected="comparisonView === 'charts' ? 'true' : 'false'"
314314
aria-controls="comparison-panel-charts"
315315
:tabindex="comparisonView === 'charts' ? -1 : 0"
316-
class="flex items-center justify-center gap-x-2 rounded px-3 py-2 font-mono text-sm border border-solid transition-colors duration-150 focus-visible:outline-accent/70"
316+
class="flex items-center justify-center gap-x-2 px-3 py-2 font-mono text-sm border border-solid transition-colors duration-150 focus-visible:outline-accent/70"
317317
:class="
318318
comparisonView === 'charts'
319319
? 'bg-bg border-border shadow-sm text-fg'
@@ -324,7 +324,7 @@ useSeoMeta({
324324
<span class="i-lucide:chart-bar-decreasing size-[1em]" aria-hidden="true" />
325325
<span>{{ $t('compare.packages.charts_view') }}</span>
326326
</button>
327-
</div>
327+
</ButtonGroup>
328328

329329
<!-- Data table -->
330330
<div v-show="comparisonView === 'table'" role="tabpanel">

0 commit comments

Comments
 (0)