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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1dc9dcfd7fc8bed8ccd07cbec3b1ec442d15dbb66207cff99291683c3fcb5bf4
4
- data.tar.gz: 1b0852b24cf432723f49cd373243f671041cdb5e2570ef971007b8efa293a62b
3
+ metadata.gz: 7a34af0364320b47d4de82c0366ec5fee9f7969ecfe35ba7aa523241004919d6
4
+ data.tar.gz: d952683414a0bfbb6e5ae0c2e3ccaf9ad5e4aecbf4ec60ca1f9c768a711017d4
5
5
  SHA512:
6
- metadata.gz: a1c5fc5ee7cc4377f5541a5ffbfedf0d054364004bad811e7d16d7500188c867e84b36d91a97119c7118cc1a301ba0b5ad37267d29332de54ad9ff2d67a6ba1c
7
- data.tar.gz: e3e5cdf76e498f93d7bb97f653cf61288b05d8c3b6df6055f4e3de5e4dfdb9048448269775873ce8787417ae0fc15842e4266317858c1b68def2f5fc1812867d
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={hydrated && open ? "true" : undefined}
99
- aria-live={hydrated && open ? "polite" : undefined}
92
+ aria-atomic="true"
93
+ aria-live="polite"
100
94
  className={css}
101
95
  onClick={handleClick}
102
96
  onKeyDown={(e) => {