Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

fix(modal): Captures focus in both directions - using tab & shift-tab #3689

Closed
wants to merge 1 commit into from

Conversation

Tobino
Copy link
Contributor

@Tobino Tobino commented May 19, 2015

A new directive to enforceFocus inside Modal.
This directive works with multiple modal, everything is tested except shift-tab because of karma.
I could test it with protrator.
I also refactor modalOpener.Focus without change in Spec.
fixes #738

@Tobino
Copy link
Contributor Author

Tobino commented May 20, 2015

This PR will be in conflict with PR 3653.
I need to remove refactor of modalOpener.Focus.

#3653

@rvanbaalen
Copy link
Contributor

I'm feeling this should be closed in favour of #3653. But I'm not sure. Therefore, I leave this open with a 'needs: review' label.

@rvanbaalen rvanbaalen added this to the Purgatory milestone Jun 2, 2015
@Tobino
Copy link
Contributor Author

Tobino commented Jun 3, 2015

This PR fix focus when modal is open and fixe issue #738.
#3653 fix focus when Modal close.

commit 5ae356f fix a conflict with PR #3653

@chrisirhc
Copy link
Contributor

This is a lot of overriding of the tab behavior. Is the focusin handler mentioned in my comment #738 (comment) inadequate?

@Tobino
Copy link
Contributor Author

Tobino commented Jun 8, 2015

I can remove some part if you want, depend on level of a11y you want.
There is 3 parts on this directive [https://github.com//issues/738#issuecomment-48099422]:

This directive is the angular version of bootstrap and bootstrap-accessibility-plugin with support of multiple modals.

PS: Boostrap doesn't support multiple modals.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

$modal does not stop tabbing on the background
4 participants