Skip to content

Iframe is announced with the component's completion status when displayTitle is set #53

Open

Description

@oliverfoster

Subject of the issue

When a YouTube component has a displayTitle, its iframe is announced with the component's completion status, e.g. "Incomplete. Intro video", and "Completed. Intro video" once the video is complete.

Your environment

  • adapt-youtube v3.3.6 (master), core v6.79.0
  • Chrome, any screen reader

Steps to reproduce

  1. Add a YouTube component with a displayTitle.
  2. Inspect the iframe's accessible name (DevTools Accessibility pane), or navigate to it with a screen reader.

Expected behaviour

The iframe is named by the title text only: "Intro video".

Actual behaviour

The name is "Incomplete. Intro video". #48 points the iframe at the component heading with aria-labelledby="{{_id}}-heading". Core's heading.hbs includes the screen-reader completion description inside that element, so it becomes part of the iframe's name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions