fix(a11y): keep dt/dd pairs one div below the dl in TableCard and ValuesView

This commit is contained in:
Locust agent
2026-11-03 05:05:17 +00:00
parent b74b82e7d2
commit 71d96c6220
2 changed files with 7 additions and 5 deletions
+4 -4
View File
@@ -15,10 +15,10 @@ defineProps({
<!-- Small screens: one block per row, so the table never scrolls sideways. -->
<dl class="divide-y divide-border sm:hidden">
<div v-for="(row, rowIndex) in rows" :key="rowIndex" class="px-4 py-3">
<div v-for="(cell, cellIndex) in row" :key="cellIndex" class="py-1">
<dt class="text-body-base font-semibold text-muted-foreground">{{ headers[cellIndex] }}</dt>
<dd class="text-body-base text-body">{{ cell }}</dd>
</div>
<template v-for="(cell, cellIndex) in row" :key="cellIndex">
<dt class="pt-1 text-body-base font-semibold text-muted-foreground">{{ headers[cellIndex] }}</dt>
<dd class="pb-1 text-body-base text-body">{{ cell }}</dd>
</template>
</div>
</dl>
+3 -1
View File
@@ -15,7 +15,9 @@ import PageSection from '@/components/layout/PageSection.vue'
<PageSection title="Core values" summary="A core value names the thing it prefers over the thing it gives up.">
<dl class="space-y-5">
<div v-for="value in coreValues" :key="value.valueMore" class="flex gap-3 border-l-2 border-accent pl-3">
<i :class="value.icon" class="mt-1 text-accent" aria-hidden="true"></i>
<div class="mt-1 text-accent">
<i :class="value.icon" aria-hidden="true"></i>
</div>
<div>
<dt class="text-title font-semibold text-large">{{ value.valueMore }}</dt>
<dd class="text-body-base text-body">We choose this over {{ value.over }}.</dd>