mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-29 21:52:22 +01:00
Merge pull request #15330 from patrickhlauke/customizer-variables-help-block
Tie help block to input with aria-describedby
This commit is contained in:
commit
7c228b3cfa
@ -13,11 +13,13 @@ each section in sections
|
|||||||
div.clearfix
|
div.clearfix
|
||||||
div.col-xs-4
|
div.col-xs-4
|
||||||
label(for="input-" + variable.name)= variable.name
|
label(for="input-" + variable.name)= variable.name
|
||||||
|
- var helpId = "help-block-" + variable.name
|
||||||
input.form-control(
|
input.form-control(
|
||||||
id="input-" + variable.name
|
id="input-" + variable.name
|
||||||
type="text"
|
type="text"
|
||||||
|
aria-describedby=variable.docstring ? helpId : undefined
|
||||||
value=variable.defaultValue
|
value=variable.defaultValue
|
||||||
data-var=variable.name)
|
data-var=variable.name)
|
||||||
if variable.docstring
|
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.
|
// NOTE: DO NOT EDIT THE PRECEDING SECTION DIRECTLY! It is autogenerated via the `build-customizer-html` Grunt task using the customizer-variables.jade template.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user