fix(frontend): 澄清反问块加 role=status 向读屏播报(WFW-9 M3,WCAG 4.1.3)
This commit is contained in:
@@ -107,7 +107,8 @@ export function ChapterRewritePanel({
|
||||
/>
|
||||
</label>
|
||||
{asking && firstQuestion ? (
|
||||
<div className="rounded border border-cinnabar/40 bg-bg p-3">
|
||||
// role="status":AI 反问动态出现时向读屏播报(WCAG 4.1.3 Status Messages)。
|
||||
<div role="status" className="rounded border border-cinnabar/40 bg-bg p-3">
|
||||
<p className="mb-2 text-2xs text-ink-soft">AI 想先跟你确认一下:</p>
|
||||
<ChoiceChips
|
||||
question={firstQuestion.question}
|
||||
|
||||
@@ -139,7 +139,8 @@ export function RefinePanel({
|
||||
/>
|
||||
</label>
|
||||
{asking && firstQuestion ? (
|
||||
<div className="rounded border border-cinnabar/40 bg-bg p-3">
|
||||
// role="status":AI 反问动态出现时向读屏播报(WCAG 4.1.3 Status Messages)。
|
||||
<div role="status" className="rounded border border-cinnabar/40 bg-bg p-3">
|
||||
<p className="mb-2 text-2xs text-ink-soft">AI 想先跟你确认一下:</p>
|
||||
<ChoiceChips
|
||||
question={firstQuestion.question}
|
||||
|
||||
Reference in New Issue
Block a user