Skip to content

Commit

Permalink
FLUID-6008: use a separate panelOptions block to hold the labelId value.
Browse files Browse the repository at this point in the history
  • Loading branch information
waharnum committed Nov 1, 2016
1 parent 91a8070 commit 49e50c3
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/framework/preferences/js/Panels.js
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ var fluid_2_0_0 = fluid_2_0_0 || {};
"onCreate.setAriaLabelledBy": {
"this": "{that}.container",
"method": "attr",
"args": ["aria-labelledby", "{textfieldSlider}.options.sliderOptions.labelId"]
"args": ["aria-labelledby", "{textSize}.options.panelOptions.labelId"]
}
}
}
Expand All @@ -707,7 +707,7 @@ var fluid_2_0_0 = fluid_2_0_0 || {};
"onCreate.setAriaLabelledBy": {
"this": "{that}.container",
"method": "attr",
"args": ["aria-labelledby", "{textfieldSlider}.options.sliderOptions.labelId"]
"args": ["aria-labelledby", "{textSize}.options.panelOptions.labelId"]
}
}
}
Expand All @@ -720,7 +720,7 @@ var fluid_2_0_0 = fluid_2_0_0 || {};
label: {
messagekey: "textSizeLabel",
decorators: {
attrs: {id: "{that}.options.sliderOptions.labelId"}
attrs: {id: "{that}.options.panelOptions.labelId"}
}
},
multiplier: {messagekey: "multiplier"},
Expand All @@ -729,7 +729,9 @@ var fluid_2_0_0 = fluid_2_0_0 || {};
sliderOptions: {
orientation: "horizontal",
step: 0.1,
range: "min",
range: "min"
},
panelOptions: {
labelId: "textSize-label-" + fluid.allocateGuid()
}
});
Expand Down Expand Up @@ -827,7 +829,7 @@ var fluid_2_0_0 = fluid_2_0_0 || {};
"onCreate.setAriaLabelledBy": {
"this": "{that}.container",
"method": "attr",
"args": ["aria-labelledby", "{textfieldSlider}.options.sliderOptions.labelId"]
"args": ["aria-labelledby", "{lineSpace}.options.panelOptions.labelId"]
}
}
}
Expand All @@ -839,7 +841,7 @@ var fluid_2_0_0 = fluid_2_0_0 || {};
"onCreate.setAriaLabelledBy": {
"this": "{that}.container",
"method": "attr",
"args": ["aria-labelledby", "{textfieldSlider}.options.sliderOptions.labelId"]
"args": ["aria-labelledby", "{lineSpace}.options.panelOptions.labelId"]
}
}
}
Expand All @@ -852,7 +854,7 @@ var fluid_2_0_0 = fluid_2_0_0 || {};
label: {
messagekey: "lineSpaceLabel",
decorators: {
attrs: {id: "{that}.options.sliderOptions.labelId"}
attrs: {id: "{that}.options.panelOptions.labelId"}
}
},
multiplier: {messagekey: "multiplier"},
Expand All @@ -861,7 +863,9 @@ var fluid_2_0_0 = fluid_2_0_0 || {};
sliderOptions: {
orientation: "horizontal",
step: 0.1,
range: "min",
range: "min"
},
panelOptions: {
labelId: "lineSpace-label-" + fluid.allocateGuid()
}
});
Expand Down

0 comments on commit 49e50c3

Please sign in to comment.