a11y 收尾:主题级对比度根因修复(indigo-500→600)+12 处控件 accessible name+4 处 heading-order,7 页复扫全 0 违规;基准 total_issues 保持 8

Result: {"status":"keep","total_issues":8,"eslint_errors":0,"eslint_problems":0,"eslint_warnings":0,"golint_canonicalheader":0,"golint_errname":0,"golint_errorlint":1,"golint_exhaustive":0,"golint_forcetypeassert":0,"golint_gosec":0,"golint_intrange":0,"golint_modernize":3,"golint_nilnil":3,"golint_perfsprint":0,"golint_prealloc":0,"golint_recvcheck":1,"golint_test_testifylint":0,"golint_test_thelper":0,"golint_test_total":0,"golint_test_usetesting":0,"golint_total":8,"golint_usestdlibvars":0,"golint_vetx_total":0,"golint_wastedassign":0,"measure_s":85,"tsc_errors":0,"vitest_failed":0,"vitest_total":126}
This commit is contained in:
ryan
2026-08-26 12:51:48 +08:00
parent 451ce52592
commit e66dea9090
14 changed files with 48 additions and 23 deletions
@@ -311,7 +311,7 @@ export function OpenFlareOpsSettings() {
value={fields.geoip_provider}
onValueChange={(value) => updateField('geoip_provider', value)}
>
<SelectTrigger>
<SelectTrigger aria-label={t('geo.mode')}>
<SelectValue />
</SelectTrigger>
<SelectContent>
@@ -443,8 +443,9 @@ export function OpenFlareOpsSettings() {
</p>
</div>
<div className='space-y-1.5'>
<Label>{t('discovery.command')}</Label>
<Label htmlFor='discovery-command'>{t('discovery.command')}</Label>
<Textarea
id='discovery-command'
readOnly
value={discoveryCommand || t('discovery.commandHint')}
className='min-h-24 font-mono text-xs'
@@ -542,7 +543,7 @@ export function OpenFlareOpsSettings() {
updateField('uptime_kuma_monitor_scope', value)
}
>
<SelectTrigger>
<SelectTrigger aria-label={t('kuma.scope')}>
<SelectValue />
</SelectTrigger>
<SelectContent>
@@ -644,8 +645,9 @@ function FieldInput({
}) {
return (
<div className='space-y-1.5'>
<Label>{label}</Label>
<Label htmlFor={`field-${label}`}>{label}</Label>
<Input
id={`field-${label}`}
type={type}
value={value}
placeholder={placeholder}
@@ -677,7 +679,7 @@ function ToggleRow({
</p>
) : null}
</div>
<Switch checked={checked} onCheckedChange={onChange} />
<Switch checked={checked} onCheckedChange={onChange} aria-label={label} />
</div>
);
}