You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO: [P2] Add `aria-roledescription="message"` for better AX, need localization strings.
116
+
/* TODO: [P1] File a crbug for TalkBack. It should not able to read the content twice when scanning. */
117
+
/* The following <div> is designed for active descendant only.
118
+
We want to prevent screen reader from scanning the content that is authored only for active descendant.
119
+
The specific content should only read when user press UP/DOWN arrow keys to change `aria-activedescendant`.
120
+
However, Android TalkBack 12.1 is buggy when the there is an element with ID of one of the `aria-activedescendant` potential candidates,
121
+
TalkBack will narrate the message content twice (i.e. content of `bodyRef`), regardless whether the ID is currently set as `aria-activedescendant` or not.
122
+
As Android does not support active descendant, we are hiding the whole DOM element altogether. */
// When NVDA is in browse mode, using up/down arrow key to "browse" will dispatch "click" and "mousedown" events for <article> element (inside <LiveRegionActivity>).
124
-
ref={wrappedRef}
125
-
tag="article"
126
-
>
127
-
{/* TODO: [P1] File a crbug for TalkBack. It should not able to read the content twice when scanning. */}
128
-
129
-
{/* The following <div> is designed for active descendant only.
130
-
We want to prevent screen reader from scanning the content that is authored only for active descendant.
131
-
The specific content should only read when user press UP/DOWN arrow keys to change `aria-activedescendant`.
132
-
However, Android TalkBack 12.1 is buggy when the there is an element with ID of one of the `aria-activedescendant` potential candidates,
133
-
TalkBack will narrate the message content twice (i.e. content of `bodyRef`), regardless whether the ID is currently set as `aria-activedescendant` or not.
134
-
As Android does not support active descendant, we are hiding the whole DOM element altogether. */}
// When NVDA is in browse mode, using up/down arrow key to "browse" will dispatch "click" and "mousedown" events for <article> element (inside <LiveRegionActivity>).
0 commit comments