Skip to content

New block: core/transcript #44539

Closed
Closed

Description

@joedolson

What problem does this address?

A text transcript is an important type of alternative content for timed media, like audio and video. WordPress offers standard blocks for displaying audio and video, but does not provide a standardized way to display transcripts.

What is your proposed solution?

A transcript block could ensure a stable and standardized way to add alternative content for timed media.

For the disclosure model, the transcript block could consist of a details and summary interaction, where the summary element has a contained heading. The heading should be configurable by the user, but by default should either be h2 or h3.

The details/summary pattern isn't fully mature, but does have broad support. I would still suggest using it rather than rolling a custom disclosure widget, thinking long term. See: https://www.scottohara.me//blog/2022/09/12/details-summary.html

E.g.

<details>
    <summary><h2>Transcript</h2></summary>
    <div>
       <p>Text content.</p>
     </div>
</details>

Activity

  1. added
    [Focus] Accessibility (a11y)
    on Sep 28, 2022
  2. added
    New Block
    on Sep 28, 2022
  3. carolinan commented on Sep 30, 2022

    @carolinan
    Contributor

    I could see more use cases for a details summary block, perhaps Transcript could be an alias name for such a block.

    This block was suggested in the past but the issue was closed because of limited support in IE 11. I don't believe that is valid anymore.

    What inner blocks should be allowed?

  4. self-assigned this
    on Oct 17, 2022
  5. added
    [Status] In Progress
    on Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

New Block[Focus] Accessibility (a11y)[Status] In Progress

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions