mirror of
https://github.com/lukaszraczylo/beat-delivery-methodology.git
synced 2026-11-25 11:06:00 +00:00
fix(a11y): keep dt/dd pairs one div below the dl in TableCard and ValuesView
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user