Skip to content

Embed url input field misses an associated label #1409

Closed

Description

@afercia

All form controls need to be properly labeled.

The current rendered markup for an embed url field is:

<form>
  <input type="url" value="" class="components-placeholder__input" placeholder="Enter URL to embed here…">
  <button type="submit" class="components-button button button-large">Embed</button>
</form>

Visually:

screen shot 2017-06-23 at 17 39 28

One option could be to simply use the visible text (in the example above: "Cloudup URL") as label for the input field.
Worth reminding, according to the WordPress accessibility coding standard, labels should be explicitly associated (use for/id attributes and not wrapping the field). See https://make.wordpress.org/core/handbook/best-practices/coding-standards/accessibility-coding-standards/#labeling

Activity

  1. added
    [Focus] Accessibility (a11y)
    on Jun 23, 2017
  2. changed the title [-]Embed url input field miss an associated label[/-] [+]Embed url input field misses an associated label[/+] on Jun 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Focus] Accessibility (a11y)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions