Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Tab and modality fixes for the modal dialogs #4714

Merged
merged 3 commits into from
Aug 22, 2013
Merged

Tab and modality fixes for the modal dialogs #4714

merged 3 commits into from
Aug 22, 2013

Conversation

TomMalbran
Copy link
Contributor

This request fixes the tab issue #4589 by refcusing the first/last input when we will tab outside the dialog.

And modal issue #4687, by handling the z-index of the dialogs and backdrops.

I also fixed several links missing the href attribute to make them tab-able and using space on those items to trigger the click event which was missing.

@ghost ghost assigned RaymondLim Aug 9, 2013
@TomMalbran
Copy link
Contributor Author

By the way, after doing this PR I did PR #4718, so I ended up changing the links in the strings twice. PR #4718 would also make the links tab-able without adding the additional href='#', so I think we should merge that one first and I'll remove all the unnecessary link changes here.

/**
* @private
* Dismises a modal dialog
* @param {$.Element} dlg
Copy link
Contributor

Choose a reason for hiding this comment

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

Since dlg is a jQuery object, we should use $ prefix for the variable name. I know it's not your code, but you can clean it up for consistency with the way we name our variables.

update: You may need to check other functions in this module for changing dlg to $dlg.

.css("z-index", zIndex + 1)
.next().css("z-index", zIndex);

zIndex += 2;
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice implementation using z-index for nested dialogs.

@RaymondLim
Copy link
Contributor

Done with second review. Just have some comments and ready to merge if you're not going to change anything.

@RaymondLim
Copy link
Contributor

Merging now.

RaymondLim added a commit that referenced this pull request Aug 22, 2013
Tab and modality fixes for the modal dialogs
@RaymondLim RaymondLim merged commit ed820d0 into adobe:master Aug 22, 2013
@TomMalbran TomMalbran deleted the tom/dialogs-fixes branch August 22, 2013 06:36
@peterflynn peterflynn mentioned this pull request Mar 19, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants