完成全项目响应式审核与换机交接
This commit is contained in:
@@ -29,7 +29,7 @@ foreach ($token in @(
|
||||
}
|
||||
|
||||
$dialog = Read-Utf8 'components/AppDialog.vue'
|
||||
foreach ($token in @('role="dialog"', 'aria-modal="true"', 'tabindex="-1"', '@keydown.esc.stop="cancel"', 'max-height: calc(var(--app-viewport-height, 100vh) - 160rpx)', 'overflow-y: auto')) {
|
||||
foreach ($token in @('role="dialog"', 'aria-modal="true"', 'tabindex="-1"', '@keydown.esc.stop="cancel"', 'max-height: calc(var(--app-viewport-height, 100vh) - 80rpx - env(safe-area-inset-top) - env(safe-area-inset-bottom))', 'overflow-y: auto')) {
|
||||
if (-not $dialog.Contains($token)) { throw "AppDialog accessibility contract missing: $token" }
|
||||
}
|
||||
|
||||
@@ -43,4 +43,14 @@ foreach ($token in @('role="status"', 'aria-live="polite"', 'aria-busy="true"',
|
||||
if (-not $loading.Contains($token)) { throw "AppLoading accessibility contract missing: $token" }
|
||||
}
|
||||
|
||||
$tabbar = Read-Utf8 'components/AppTabbar.vue'
|
||||
foreach ($token in @('role="tablist"', 'role="tab"', ':aria-selected="active === item.key"', 'hover-class="tab-item--pressed"')) {
|
||||
if (-not $tabbar.Contains($token)) { throw "AppTabbar interaction contract missing: $token" }
|
||||
}
|
||||
|
||||
$card = Read-Utf8 'components/GenealogyCard.vue'
|
||||
foreach ($token in @('role="button"', ':aria-label="accessibleLabel"', 'hover-class="genealogy-card--pressed"', 'const accessibleLabel = computed(')) {
|
||||
if (-not $card.Contains($token)) { throw "GenealogyCard interaction contract missing: $token" }
|
||||
}
|
||||
|
||||
Write-Output 'SHARED-INTERACTION-ACCESSIBILITY-CONTRACT PASS'
|
||||
|
||||
Reference in New Issue
Block a user