Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPatrick H. Lauke <redux@splintered.co.uk>2014-12-09 13:02:20 +0300
committerPatrick H. Lauke <redux@splintered.co.uk>2014-12-09 13:02:20 +0300
commit7c228b3cfab854bf43b0ba8aa4899fdabf62467a (patch)
tree49da7fd9230ad6cb354385aac4080cd2959046a8 /docs
parent762acc826f3a4e266f3757a424eedb093286d71f (diff)
parent4529a9e7b7fd7a12f4897acef8eed07a03b43099 (diff)
Merge pull request #15330 from patrickhlauke/customizer-variables-help-block
Tie help block to input with aria-describedby
Diffstat (limited to 'docs')
-rw-r--r--docs/_jade/customizer-variables.jade4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/_jade/customizer-variables.jade b/docs/_jade/customizer-variables.jade
index bd0df1d139..fbbddcba42 100644
--- a/docs/_jade/customizer-variables.jade
+++ b/docs/_jade/customizer-variables.jade
@@ -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.