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

Added aria-describedby as step.id #597

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/coffee/bootstrap-tour.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,9 @@
# Start tour from current step
start: (force = false) ->
@init force unless @_inited # Backward compatibility

if @_current is null
promise = @_makePromise(@_options.onStart(@) if @_options.onStart?)
@_callOnPromiseDone(promise, @showStep, 0)
@
promise = @_makePromise(@_options.onStart(@) if @_options.onStart?)
@_callOnPromiseDone(promise, @showStep, 0)


# Hide current step and show next step
next: ->
Expand Down Expand Up @@ -524,6 +522,7 @@
# Tip adjustment
$tip = if $element.data 'bs.popover' then $element.data('bs.popover').tip() else $element.data('popover').tip()
$tip.attr 'id', step.id
$element.attr 'aria-describedby', step.id

@_focus $tip, $element, step.next < 0
@_reposition $tip, step
Expand Down