The video loses its screen reader sentence when the labelled copy is served
Problem/motivation
When the labelled copy of a video is served, file-video--ai-disclosure-player.html.twig drops the whole overlay. The icon goes, which is right because it is in the frames. The visually hidden sentence and aria-describedby go too. A screen reader user then gets no disclosure at all.
docs/media/video.md says only the icon steps aside.
Steps to reproduce
- Enable
ai_disclosure_avand upload a video graded as a deep fake. - Let the queue render the labelled copy.
- Open the page. The
videoelement has noaria-describedbyand the sentence is not in the markup.
Proposed resolution
Keep the sentence and aria-describedby when the rendition is served. Leave out only the drawn icon.
AI Compliance
🤖 Generated with the help of an LLM, reviewed and approved by me before posting.