Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fieldset issue - Legend not read by NVDA #5291

Closed
nvaccessAuto opened this issue Aug 18, 2015 · 3 comments
Closed

Fieldset issue - Legend not read by NVDA #5291

nvaccessAuto opened this issue Aug 18, 2015 · 3 comments

Comments

@nvaccessAuto
Copy link

nvaccessAuto commented Aug 18, 2015

Reported by Bogdana on 2015-08-18 05:11
There is a specific case, where NVDA is not reading the <legend>:

Lets say we have a group of form elements surrounded by <fieldset> in combination with <legend>. When tabbing through the page, the focus lands on the first form element and the reader is supposed to say whatever we have in the legend + grouping at the end. Ok, but that's not the case if the first form element is an application and our focus before that was on a link. If the previously focused element was a native form element it works just fine.

Not working:

<a href="#">Link 1</a>
  <fieldset>
    <legend>Fieldset legend</legend>
      <div role="application">
        <a href="#">Link 2</a>
      </div>
  </fieldset>

Working:

<input type="text" />
  <fieldset>
     <legend>Fieldset legend</legend>
        <div role="application">
          <a href="#">Link 2</a>
        </div>
  </fieldset>

Any thoughts on the matter ?

@kymdusting
Copy link

kymdusting commented Jun 19, 2017

Also running into this problem although the circumstances are a little more specific.

The scenario is:
The fieldset contains the first set of form elements in the page.
The first element to get focus within that fieldset is a button or link (not any kind of input).
Tabbing through the fieldset the legend is ignored and does not read "legend text grouping" on focus of any elements with the fieldset.
If you reverse tab through the fieldset so that the first element to get focus is an input it does read "legend text grouping".

This only happens if the fieldset is the first element in the page containing form elements. The same fieldset moved after another form field will read the "legend text grouping" correctly.

https://codepen.io/kymdusting/pen/qjrBda

@feerrenrut
Copy link
Contributor

I believe this will be fixed with #3321. @jcsteh Can you confirm?

@jcsteh
Copy link
Contributor

jcsteh commented Jun 20, 2017

Yes, #3321 should fix this. Closing as duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants