mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 09:49:14 +00:00
Bug 286145. Expose preference categories as in a list, not a radio group. r=mconnor
This commit is contained in:
parent
1e9092c81f
commit
76008bc95f
@ -426,7 +426,11 @@
|
||||
#else
|
||||
xul:title="&preferencesDefaultTitleMac.title;">
|
||||
#endif
|
||||
<xul:radiogroup anonid="selector" orient="horizontal" class="paneSelector chromeclass-toolbar"/>
|
||||
<xul:radiogroup anonid="selector" orient="horizontal" class="paneSelector chromeclass-toolbar"
|
||||
xmlns:xhtml2="http://www.w3.org/TR/xhtml2"
|
||||
xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#"
|
||||
xmlns:waistate="http://www.w3.org/2005/01/wai-rdf/GUIStateTaxonomy#"
|
||||
xhtml2:role="wairole:list"/> <!-- Expose to accessibility APIs as a list -->
|
||||
<xul:hbox flex="1" class="paneDeckContainer">
|
||||
<xul:deck anonid="paneDeck" flex="1">
|
||||
<children includes="prefpane"/>
|
||||
@ -536,6 +540,10 @@
|
||||
var radio = document.createElement("radio");
|
||||
radio.setAttribute("pane", aPaneElement.id);
|
||||
radio.setAttribute("label", aPaneElement.label);
|
||||
// Expose preference group choice to accessibility APIs as an unchecked list item
|
||||
// The parent group is exposed to accessibility APIs as a list
|
||||
radio.setAttributeNS("http://www.w3.org/TR/xhtml2", "role", "wairole:listitem");
|
||||
radio.setAttributeNS("http://www.w3.org/2005/01/wai-rdf/GUIStateTaxonomy#", "checked", "false");
|
||||
if (aPaneElement.image)
|
||||
radio.setAttribute("src", aPaneElement.image);
|
||||
radio.style.listStyleImage = aPaneElement.style.listStyleImage;
|
||||
|
Loading…
x
Reference in New Issue
Block a user