From 9db4d945fbc05251a39e65303aaf91802d2def2d Mon Sep 17 00:00:00 2001 From: apeatling Date: Mon, 16 Jan 2023 10:54:18 -0800 Subject: [PATCH 1/2] Reduce the snackbar display time by half, from 10 to 5 seconds. --- packages/components/src/snackbar/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/src/snackbar/index.tsx b/packages/components/src/snackbar/index.tsx index 833d9dce8d30ff..3e48998383a86b 100644 --- a/packages/components/src/snackbar/index.tsx +++ b/packages/components/src/snackbar/index.tsx @@ -19,7 +19,7 @@ import Button from '../button'; import type { NoticeAction, SnackbarProps } from './types'; import type { WordPressComponentProps } from '../ui/context'; -const NOTICE_TIMEOUT = 10000; +const NOTICE_TIMEOUT = 5000; /** * Custom hook which announces the message with the given politeness, if a From 59639809378b6c9bf89285237c1a694bbbb98177 Mon Sep 17 00:00:00 2001 From: apeatling Date: Tue, 17 Jan 2023 09:56:37 -0800 Subject: [PATCH 2/2] Update to 6000ms. --- packages/components/src/snackbar/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/src/snackbar/index.tsx b/packages/components/src/snackbar/index.tsx index 3e48998383a86b..83a052ae1b0a17 100644 --- a/packages/components/src/snackbar/index.tsx +++ b/packages/components/src/snackbar/index.tsx @@ -19,7 +19,7 @@ import Button from '../button'; import type { NoticeAction, SnackbarProps } from './types'; import type { WordPressComponentProps } from '../ui/context'; -const NOTICE_TIMEOUT = 5000; +const NOTICE_TIMEOUT = 6000; /** * Custom hook which announces the message with the given politeness, if a