Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
7c228b3c
Commit
7c228b3c
authored
10 years ago
by
Patrick H. Lauke
Browse files
Options
Download
Plain Diff
Merge pull request #15330 from patrickhlauke/customizer-variables-help-block
Tie help block to input with aria-describedby
parents
762acc82
4529a9e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/_jade/customizer-variables.jade
+3
-1
docs/_jade/customizer-variables.jade
with
3 additions
and
1 deletion
+3
-1
docs/_jade/customizer-variables.jade
+
3
-
1
View file @
7c228b3c
...
...
@@ -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.
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets