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

Move alert-dialog example into alert-dialog pattern (Issue 2418 Task) #2502

Merged
merged 18 commits into from
Oct 26, 2022

Conversation

alflennik
Copy link
Contributor

@alflennik alflennik commented Oct 6, 2022

Extracts the alert-dialog example from its current position under the dialog-modal pattern directory to the alert-dialog pattern directory. I simplified the source code and removed any dependencies on code in the dialog-modal directory.

Resolves Issue #2488.

See Issue #2418 for more context. Note that the current PR base is #2499. Once that PR is merged the base of this PR should be changed to #2417.

@alflennik alflennik requested a review from mcking65 October 7, 2022 00:43
Copy link
Contributor

@mcking65 mcking65 left a comment

Choose a reason for hiding this comment

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

I did a quick test of the example and found that the js is not behaving the same. For instance, focus is not properly trapped. There must be some methods in the dialog.js that were not copied over or replicated.

I am rather concerned that the regression testing did not capture this. We should open an issue to add regression tests that thoroughly test tab key behavior and initial focus in the dialog examples ... or fix them if the tests are there but not complete.

@alflennik alflennik force-pushed the move-examples-alert-dialog branch from 83f1a1b to 4862c99 Compare October 20, 2022 18:39
@alflennik
Copy link
Contributor Author

Thanks for the feedback @mcking65, the reason the regression tests did not catch the issue is that there was no regression test for this example. I wrote a regression test and fixed several issues including the one you pointed out where it's possible to tab out of the dialog. Thanks for your patience as I figure out how the examples are authored!

Base automatically changed from move-examples-consistency to move-examples October 24, 2022 14:13
@mcking65
Copy link
Contributor

@alflennik, this is working now, and thank you for the additional tests!!!

Unfortunately, since I merged #2499, looks like we have a pile of conflicts.

@alflennik
Copy link
Contributor Author

Great to hear it's working!

@alflennik alflennik merged commit 820360b into move-examples Oct 26, 2022
@alflennik alflennik deleted the move-examples-alert-dialog branch October 26, 2022 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants