Skip to content

Accessibility - hard to click the "do you want a backup" form #93

Description

@edent

Current HTML is:

<span id="success-message">
   Do you want a backup? 
   <form>
      <input type="radio" name="create_backup" value="true">Yes<br>
      <input type="radio" name="create_backup" value="false" checked="">No
   </form>
</span>

The "Yes" and "No" cannot be clicked - only the small radio buttons.

As per https://www.w3.org/WAI/tutorials/forms/labels/ the easiest solution is to wrap them in a label element.

<label>
   <input type="radio" name="create_backup" value="true">Yes
</label>
<br>
<label>
      <input type="radio" name="create_backup" value="false" checked="">No
</label>

Let me know if you'd like a PR.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions