3. A modal window is a window
that forces the user to interact
with it before they can go back to
using the parent page.
4. Generally, modal windows are
designed to sit over the top of
the parent page. In some cases,
the parent page is greyed out so
that users can visually focus on the
modal dialog only.
13. Modeless windows are secondary
windows that stay active on the
user's screen until dismissed.
Modeless windows can be
minimised or hidden behind other
windows.
14. Unlike a modal window, a
modeless window will allow the
user to continue working with
the application while the modeless
window is still open.
31. For hyperlinks, we could add
additional information using the
ātitleā, aria-labelledby, or āaria-
labelā attributes. Or we could
place the addition information
inside the link and then hide it.
32. <!-- title attribute -->!
<a href="#id-name" !
! title="Added info">!
! Add bank account!
</a>!
33. <!-- aria-label attribute -->!
<a href="#id-name" !
! aria-label="Add bank account - Added
info">!
! Add bank account!
</a>!
55. When the modal window becomes
active, the rest of the page -
everything apart from the modal
window container, could then be
set with aria-hidden=ātrueā.
62. This is important because we are
going to give the window a label
as well as potentially adding
additional descriptive information.
63. If we set focus on an element
inside the window, such as the
first form control, the label and
additional information will not
be heard by screen reader users.
123. Users should be able to use
ENTER or SPACE keystrokes on
relevant elements while inside the
modal window - especially if they
are button elements.
129. When inside form controls,
ARROW keys are generally used to
allow users to navigate user-
entered text within the form
control.
130. An example might be a user
entering data into a <textarea>
element. The user can navigate
within their entered text using
ARROW keys to move to previous
and next characters, next line etc.
131. However, some form controls use
ARROW keys to allow users to
choose options within a set of
choices.
132. For example, radio buttons and
select menus allow users to
navigate through choices using
ARROW keys.
133. So, users should be able to use
ARROW keystrokes to change
radio button options.
145. In āreadā mode, users can read
and navigate the page. Users
cannot interact with form controls
146. In āformā mode, users can interact
with form controls. Users cannot
read and navigate the page.
147. In some cases, modal windows
may include important content
that is not form-related. In these
cases, screen reader users need to
be able to operate in āreadā mode.
148. This means that screen reader
users must be able to navigate
though content using all of the
standard āreadā mode keys.
149. In these cases, we could wrap a
new element around all the
content within the window and
set it with role=ādocumentā.
150. The ādocumentā role informs
screen readers of the need to
augment browser keyboard
support so that users can navigate
and read any content within the
ādocumentā region.
171. For complex modal windows,
where users may want to go back
to the parent page quickly without
having to TAB through the whole
window, it may be better to place
the āCloseā button first in tab
order.
178. On sites where there are
numerous different modal dialogs,
the most important thing is
consistency. Decided on a method
and use it for all modal windows
so that it becomes predictable.
180. When the modal window is closed,
if users are being taken back to
the parent page:
181. 1. Focus should be placed on the
relevant component of the parent
page. The most common practice
is to move focus back to the
element that invoked the dialog.
182. The user should not be thrown
back to the top of the parent
page unless there is a good
reason!
183. 2. The user should be informed
where they are and what change
has occurred.
185. Lorem ipsum dolor sit amet consect etuer adipi scing elit sed diam
nonummy nibh euismod tinunt ut laoreet dolore magna aliquam
erat volut. Ut wisi enim ad minim veniam, quis nostrud exerci tation
ullamcorper suscipit lobortis nisl ut aliquip vel eum iriure dolor in
hendrerit in vulputate.
Accumsan et iusto odio dignissim qui blandit praesent luptatum
zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum
dolor sit amet, consectetuer adipiscing elit, sed diam nonummy
nibh euismod tincidunt ut laoreet dolore magna aliquam erat.
Heading here
Another thing here
Add your bank balance
Another heading
$1,200.34
Focus
āBank balance $1200.34 added
to bank information tableā