Skip to content

Commit

Permalink
Merge pull request #15330 from patrickhlauke/customizer-variables-hel…
Browse files Browse the repository at this point in the history
…p-block

Tie help block to input with aria-describedby
  • Loading branch information
patrickhlauke committed Dec 9, 2014
2 parents 762acc8 + 4529a9e commit 7c228b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/_jade/customizer-variables.jade
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ each section in sections
div.clearfix
div.col-xs-4
label(for="input-" + variable.name)= variable.name
- var helpId = "help-block-" + variable.name
input.form-control(
id="input-" + variable.name
type="text"
aria-describedby=variable.docstring ? helpId : undefined
value=variable.defaultValue
data-var=variable.name)
if variable.docstring
p.help-block!= variable.docstring.html
p.help-block(id=helpId)!= variable.docstring.html
// NOTE: DO NOT EDIT THE PRECEDING SECTION DIRECTLY! It is autogenerated via the `build-customizer-html` Grunt task using the customizer-variables.jade template.

0 comments on commit 7c228b3

Please sign in to comment.