I'm trying to get the voiceover to read only the aria-describedby, but it reads it this way ("I am a button" is not read):
Whereas if there is an element with id aria-describedby="modal-label" defined. the element with id aria-labelledby="modal-desc" is read completely ("I am a button" is read).
<div
id="modal"
role="dialog"
aria-labelledby="modal-label"
aria-describedby="modal-desc"
tabIndex={0}
className="modal"
>
{*/ {children} */}
<div>
{/* If no exists this div, modal-desc is not read completely */}
<div id="modal-label">this is the title</div>
<div id="modal-desc">
<div>this is a descripcion</div>
<div>
<div>
<button>I am a button</button>
</div>
</div>
</div>
</div>
</div>
How can I make the aria-describedby be read completely when there is no element with the id modal-label when the modal is opened?


