diff --git a/src/app/content/__snapshots__/routes.spec.tsx.snap b/src/app/content/__snapshots__/routes.spec.tsx.snap
index 1d3f15ab18..039c356296 100644
--- a/src/app/content/__snapshots__/routes.spec.tsx.snap
+++ b/src/app/content/__snapshots__/routes.spec.tsx.snap
@@ -769,6 +769,7 @@ Array [
className="c0"
>
diff --git a/src/app/content/components/Page/PageToasts.tsx b/src/app/content/components/Page/PageToasts.tsx
index 640a5a1ecf..d89a590e0e 100644
--- a/src/app/content/components/Page/PageToasts.tsx
+++ b/src/app/content/components/Page/PageToasts.tsx
@@ -61,10 +61,17 @@ export const ToastContainerWrapper = styled.div`
const PageToasts = (props: ToastProps | {}) => {
const toasts = useSelector(groupedToastNotifications).page;
const mobileToolbarOpen = useSelector(mobileToolbarOpenSelector);
+ const [toastsHidden, setToastsHidden] = React.useState(true);
+
+ // timeout so that screenreaders will pick up the toasts populating the live region
+ // https://tetralogical.com/blog/2024/05/01/why-are-my-live-regions-not-working/
+ React.useEffect(() => {
+ setTimeout(() => setToastsHidden(false), 1000);
+ }, [setToastsHidden]);
return (
-
- {toasts ? : null}
+
+ {toasts && !toastsHidden ? : null}
);
};
diff --git a/src/app/content/components/Page/__snapshots__/PageToasts.spec.tsx.snap b/src/app/content/components/Page/__snapshots__/PageToasts.spec.tsx.snap
index 6497adfd11..4134e33a48 100644
--- a/src/app/content/components/Page/__snapshots__/PageToasts.spec.tsx.snap
+++ b/src/app/content/components/Page/__snapshots__/PageToasts.spec.tsx.snap
@@ -33,98 +33,13 @@ exports[`PageToasts matches snapshot 1`] = `
}
`;
exports[`PageToasts matches snapshot with toasts when mobile toolbar is open 1`] = `
-.c5 {
- color: #424242;
- font-size: 1.6rem;
- line-height: 2.5rem;
- padding: 0.5rem 1rem;
- font-weight: bold;
- background-color: #fafafa;
- line-height: 4rem;
-}
-
-.c5 a {
- color: #027EB5;
- cursor: pointer;
- -webkit-text-decoration: underline;
- text-decoration: underline;
-}
-
-.c5 a:hover {
- color: #0064A0;
-}
-
-.c1 {
- width: 100%;
- position: absolute;
- overflow: visible;
-}
-
-.c2 {
- width: 100%;
- margin: 0;
- overflow: visible;
- -webkit-transition: -webkit-transform 0.6s;
- -webkit-transition: transform 0.6s;
- transition: transform 0.6s;
- z-index: 1;
- -webkit-transform: translateY(-100%);
- -ms-transform: translateY(-100%);
- transform: translateY(-100%);
-}
-
-.c3 {
- width: 100%;
- display: -webkit-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- padding: 0.5rem 1rem;
- -webkit-align-items: center;
- -webkit-box-align: center;
- -ms-flex-align: center;
- align-items: center;
- background: #F8E8EB;
- -webkit-box-pack: justify;
- -webkit-justify-content: space-between;
- -ms-flex-pack: justify;
- justify-content: space-between;
- border: 1px solid #E297A0;
-}
-
-.c3 .c4 {
- background: inherit;
- color: #C23834;
- font-weight: normal;
- line-height: 2.6rem;
-}
-
-.c7 {
- width: 1.8rem;
- height: 1.8rem;
- cursor: pointer;
-}
-
-.c6 {
- cursor: pointer;
- border: none;
- margin: 0;
- padding: 0;
- background: none;
- color: #C22032;
- overflow: visible;
-}
-
-.c6:hover {
- color: #E297A0;
-}
-
.c0 {
position: -webkit-sticky;
position: sticky;
@@ -133,30 +48,6 @@ exports[`PageToasts matches snapshot with toasts when mobile toolbar is open 1`]
top: 12rem;
}
-@media (max-width:75em) {
- .c5 {
- padding: 0;
- line-height: 2rem;
- background-color: initial;
- }
-}
-
-@media print {
- .c2 {
- display: none;
- }
-}
-
-@media (max-width:75em) {
- .c3 {
- -webkit-align-items: flex-start;
- -webkit-box-align: flex-start;
- -ms-flex-align: flex-start;
- align-items: flex-start;
- padding: 1.6rem 1.6rem;
- }
-}
-
@media screen and (max-width:90em) {
.c0 {
max-width: calc(100vw - ((100vw - 128rem) / 2) - 8rem);
@@ -181,65 +72,10 @@ exports[`PageToasts matches snapshot with toasts when mobile toolbar is open 1`]
}
-
-
-
-
- The highlight could not be saved. Please check your connection and try again.
-
-
-
-
-
-
+/>
`;
exports[`PageToasts matches snapshots with toasts 1`] = `
@@ -386,7 +222,7 @@ exports[`PageToasts matches snapshots with toasts 1`] = `
@@ -8886,6 +8887,7 @@ li[aria-label="Current Page"] .c61 {
className="c77"
>