Refine rail drawer switching and toggle animations
This commit is contained in:
@@ -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}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user