playbook_ui 14.25.0.pre.alpha.PLAY2422fixedconftoastaccessibility9840 → 14.25.0.pre.alpha.PLAY2422fixedconftoastaccessibility9841
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.tsx +2 -8
- data/dist/chunks/{_weekday_stacked-CIrRrYKI.js → _weekday_stacked-CESmjuVN.js} +1 -1
- data/dist/chunks/vendor.js +1 -1
- data/dist/playbook-doc.js +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a34af0364320b47d4de82c0366ec5fee9f7969ecfe35ba7aa523241004919d6
|
4
|
+
data.tar.gz: d952683414a0bfbb6e5ae0c2e3ccaf9ad5e4aecbf4ec60ca1f9c768a711017d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df568f68a00bfeaa636203a7a30c668f05903e54e75846aa95f5408af3274710a6e149a87d25c82955903c91f4dfd5e26cb14979679f3a681824f4dd4de8467b
|
7
|
+
data.tar.gz: b0ac19129419aa53e78e602472d195178b87d03f907caed4cd7f5a371ea588cab2a75f906ea89170e5034f74ff4a6145eb754255b5e3f07448d4cff18be75665
|
@@ -35,7 +35,6 @@ type FixedConfirmationToastProps = {
|
|
35
35
|
|
36
36
|
const FixedConfirmationToast = (props: FixedConfirmationToastProps): React.ReactElement => {
|
37
37
|
const [showToast, toggleToast] = useState(true);
|
38
|
-
const [hydrated, setHydrated] = useState(false);
|
39
38
|
|
40
39
|
const {
|
41
40
|
autoClose = 0,
|
@@ -86,17 +85,12 @@ const FixedConfirmationToast = (props: FixedConfirmationToastProps): React.React
|
|
86
85
|
onClose();
|
87
86
|
};
|
88
87
|
|
89
|
-
// prevents Screen Reader from announcing all examples on page load, just dynamic on open
|
90
|
-
useEffect(() => {
|
91
|
-
setHydrated(true);
|
92
|
-
}, []);
|
93
|
-
|
94
88
|
return (
|
95
89
|
<>
|
96
90
|
{showToast && (
|
97
91
|
<div
|
98
|
-
aria-atomic=
|
99
|
-
aria-live=
|
92
|
+
aria-atomic="true"
|
93
|
+
aria-live="polite"
|
100
94
|
className={css}
|
101
95
|
onClick={handleClick}
|
102
96
|
onKeyDown={(e) => {
|