Fix confirm Yes/No selected-state visibility in chat questions and add aria-pressed accessibility support. - Strengthen CSS specificity for .chat-question-response__confirm--selected so the selected style beats the global .btn/.btn:hover rules, using token-driven --cta-* colors for light/dark themes. - Add dedicated hover and focus-visible states for the selected confirm button. - Add aria-pressed to the Yes/No confirm buttons so assistive tech reflects the same selected state. - Add regression tests covering the selected visual/aria state. - Add changeset (patch) documenting the fix. Files changed: .changeset/fn-7613-confirm-selected-state.md | 7 ++++ .../app/components/ChatQuestionResponse.css | 40 ++++++++++++++++++++-- .../app/components/ChatQuestionResponse.tsx | 8 +++++ .../__tests__/ChatQuestionResponse.test.tsx | 26 ++++++++++++++ 4 files changed, 79 insertions(+), 2 deletions(-) Fusion-Task-Id: FN-7613 Fusion-Task-Lineage: d648044e-ab30-4542-9402-a7bfbfe6563e Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
5.7 KiB
5.7 KiB