Skip to content

CodeBlock - aria attributes need updating in examples #11386

@thatblindgeye

Description

@thatblindgeye

Describe the enhancement or change
For both examples, the aria-label of the buttons should be updated:

  • the copy button should have an aria-label that conveys what will be copied, e.g. Copy to clipboard basic example code block.
  • The "play" button aria-label shouldn't have the word "icon" in it and either just be "Play" or follow the ClipboardCopy additional actions example and use "Run in web terminal" -- this should also have a tooltip aplied to it.

For the expandable example, the aria-labelledby on the expandable content points to a non-existent ID. Passing the same toggleId to both ExpandableSection and ExpandableSectionToggle will resolve this.

Is this request originating from a Red Hat product team? If so, which ones and is there any sort of deadline for this enhancement?

Any other information?

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions