Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tie help block to input with aria-describedby #15330

Merged
merged 1 commit into from
Dec 9, 2014
Merged

Tie help block to input with aria-describedby #15330

merged 1 commit into from
Dec 9, 2014

Conversation

patrickhlauke
Copy link
Member

Improves the accessibility of http://getbootstrap.com/customize/ by explicitly tying any (optional) help block to the relevant <input> using aria-describedby

capture

@@ -16,8 +16,9 @@ each section in sections
input.form-control(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps add

- var helpId = "help-block-" + variable.name

And then refer to helpId, to avoid the repetition.
(See http://jade-lang.com/reference/code/ for description of - JS_stmt_here syntax)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch...kept it DRY

@cvrebert
Copy link
Collaborator

cvrebert commented Dec 9, 2014

Other than that one thing, LGTM.

patrickhlauke added a commit that referenced this pull request Dec 9, 2014
…p-block

Tie help block to input with aria-describedby
@patrickhlauke patrickhlauke merged commit 7c228b3 into twbs:master Dec 9, 2014
@juthilo juthilo mentioned this pull request Dec 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants