Opened 11 years ago

Closed 11 years ago

Last modified 9 years ago

#5934 closed defect (fixed)

dialog: if first item is an input type=file focus does not go to the dialog when it is opened

Reported by: Becky Gibson Owned by: Becky Gibson
Priority: high Milestone: 1.1
Component: Accessibility Version: 1.0
Keywords: Cc: simonjb
Blocked By: Blocking:

Description

Add an input type=file as the first focusable item in a dialog. When the dialog is opened focus is NOT within the dialog box.

Attachments (1)

5934.patch (897 bytes) - added by Becky Gibson 11 years ago.
check if FF and firstFocusItem is input type=file

Download all attachments as: .zip

Change History (8)

comment:1 Changed 11 years ago by Becky Gibson

seems to be a problem only in Firefox, IE 6 & 7 work ok

comment:2 Changed 11 years ago by Becky Gibson

(In [12589]) refs #5934 added input type=file as first item of dialog for testing and debugging

Changed 11 years ago by Becky Gibson

Attachment: 5934.patch added

check if FF and firstFocusItem is input type=file

comment:3 Changed 11 years ago by Becky Gibson

Status: newassigned

comment:4 Changed 11 years ago by Becky Gibson

(In [12706]) refs #5934 if in FF and first focusable item in a dialog is an input type=file make the dialog domNode the first focusable item. Will close ticket when I complete update of documentation for dialog in book

comment:5 Changed 11 years ago by Becky Gibson

(In [12716]) refs #5934 I made the same change for tooltip dialog as for dialog- if input type=file is first focusable element and isMoz then set focus to the tooltip dialog container. Even tho tooltip dialog doesn't have the exact focus issues as dialog becuz setting programmatic focus to an input type=file in FF only sets focus to the browse button part - this fix is needed to user can get focus into the textbox part of input field when it is first element in tooltip dialog

comment:6 Changed 11 years ago by Becky Gibson

Resolution: fixed
Status: assignedclosed

documentation has been updated - closing

comment:7 Changed 9 years ago by bill

(In [23488]) Make Dialog focus on close icon if the Dialog has no focusable elements. For TooltipDialog in this case, focus goes to the DOMNode, but officially TooltipDialogs must have at least one focusable element. Fixes #8285, #12131 !strict.

Also removed some FF workaround code about focusing an <input type=file>. It no longer seems to be needed (tested on FF3.6 on mac and windows). Refs #5934.

Finally, simplified Dialog aria tests.

Note: See TracTickets for help on using tickets.