Files
Jyotisha/frontend/src/components/composer-character-remaining.tsx
T
Jesse_Chen e8fa1ce4ea
Independent Staging Quality Gate / validate (push) Successful in 9m19s
Independent Staging Quality Gate / publish (push) Successful in 9m54s
fix(frontend): raise dark contrast, expand hit areas, and surface input limits
Dark muted surfaces missed WCAG AA; action and tertiary tokens plus a 32-pair contract close that. Hit targets, remaining-count, and Enter-to-send follow the interaction audit without changing visual sizes.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-30 11:19:50 +08:00

10 lines
394 B
TypeScript

"use client";
import { CharacterRemaining } from "@/components/character-remaining";
import { composerRemainingId, useComposerDraft } from "@/components/chat-composer";
export function ComposerCharacterRemaining({ maxLength }: { maxLength: number }) {
const draft = useComposerDraft();
return <CharacterRemaining id={composerRemainingId} length={draft.length} maxLength={maxLength} />;
}