Primeface confirmDialog accesibility

422 Views Asked by At

The confirmation dialogues are not accessible to my screenreader (Orca 3.22.2).

The reader only reads the header but not the message of the dialog. Since the focus is set on the first button by default (which is after the text most of the time) it is especially bothersome.

Did anyone ever managed to bypass this issue with using arias in the content or anything that might work?

Edit: The rendered code for the dialog:

 <div role="dialog" aria-labelledby="form:j_idt152_title" aria-hidden="false" aria-live="polite">
        <div>
           <span>Dialog Title </span>
           <a href="#" aria-label="Close" role="button">
                 <span class="ui-icon ui-icon-closethick"></span>       
          </a>
        </div>
        <div>
           <span ></span>
           <span >Message that needs to be read</span>
        </div>

        </div>
           <input id="form:ok" name="form:ok" value="ok" title="explanation on button" type="submit">
         <input  value="close" type="button">
        </div>
    </div>
1

There are 1 best solutions below

0
On

GitHub Issue created: https://github.com/primefaces/primefaces/issues/4043

Pull Request updating to latest ARIA standards will hopefully be accepted for PrimeFaces 6.3: https://github.com/primefaces/primefaces/pull/4044