SeaMonkey:Toolkit Transition:PrefwindowPanes:HowTo: Difference between revisions

no edit summary
(→‎How to migrate a preference panel: Reacting dynamically to user input and preference changes)
No edit summary
Line 165: Line 165:


The accessible name for the textbox will become the first label, followed by the value currently inside the textbox, followed by the trailing label, giving the control a much more meaningful name. Keeping the "control" attribute on the label ensures that, if it is clicked, the textbox gets focus. "aria-labelledby" will, if present, override the label/textbox association for the accessible name.
The accessible name for the textbox will become the first label, followed by the value currently inside the textbox, followed by the trailing label, giving the control a much more meaningful name. Keeping the "control" attribute on the label ensures that, if it is clicked, the textbox gets focus. "aria-labelledby" will, if present, override the label/textbox association for the accessible name.
Quoting [https://bugzilla.mozilla.org/show_bug.cgi?id=429143#c17 bug 429143 comment 17]:
MarcoZ> IanN: Well, you can accomplish the wanted without ARIA, so use
conventionals. ARIA should be used as a last resort, or with funny constructs
where the label of a checkbox is the label for an adjacent textbox at the same
time. So, use the label first, then the textbox, then the description, and
point both control attributes to the textbox.


=== Checking access keys ===
=== Checking access keys ===
235

edits