Refine rail drawer switching and toggle animations
Build and Deploy Gateway / build-and-push (push) Successful in 21s
Build and Deploy Gateway / deploy (push) Successful in 7s

This commit is contained in:
2026-08-14 15:52:56 +03:00
parent a9eca0e9d4
commit 5a21a09b82
11 changed files with 215 additions and 90 deletions
@@ -43,17 +43,19 @@ export type DiagnosticsFeature = ReturnType<typeof useDiagnosticsFeature>;
export function DiagnosticsToggle({
feature,
open,
onToggle,
}: {
feature: DiagnosticsFeature;
open: boolean;
onToggle: () => void;
}) {
return <RailAction
buttonRef={feature.toggleRef}
className="client-instructions-toggle client-diagnostics-toggle"
open={feature.isOpen}
open={open}
controls="client-diagnostics"
ariaLabel={feature.isOpen ? 'Закрыть диагностику' : 'Проверить маршруты'}
ariaLabel={open ? 'Закрыть диагностику' : 'Проверить маршруты'}
label="Диагностика"
onClick={onToggle}
>