alphagov / reported-bugs

Tracking bugs in browsers, assistive technologies and operating systems that have been reported by GDS
5 stars 2 forks source link

Legend not announced when following a link to an input within a fieldset using Ctrl-Option-Space #7

Open 36degrees opened 5 years ago

36degrees commented 5 years ago

Upstream bug: https://bugs.webkit.org/show_bug.cgi?id=191742 Date: 2018-11-16 Reported by: Oliver Byford Related to: https://github.com/alphagov/govuk-frontend/pull/1056#issuecomment-439381905


Overview

Given the following markup:

  <a href="#input">Link to input</a>

  <fieldset aria-describedby="fieldset-description">
    <legend>Legend for multiple inputs</legend>
    <span id="fieldset-description">
      Description for multiple inputs
    </span>

    <label for="input">
      Label for input
    </label>
    <input id="input" name="input">
  </fieldset>

Focus the 'link to input' and use the Ctrl-Option-Space key to follow the link, as instructed.

Expected behaviour:

Voiceover should announce the same things that it announces when following the link using the Enter key, including the legend:

"Label for input, edit text, Legend for multiple inputs, group. Description for multiple inputs, You are currently on a text field. To enter text in this field, type"

(The legend is actually announced twice in Safari 12, but this appears to be fixed in Safari Technology Preview release 70)

Actual behaviour:

Voiceover does not include the legend as part of the announcement, although it does include the description associated using aria-describedby:

"Label for input, edit text. Description for multiple inputs, You are currently on a text field. To enter text in this field, type"