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

report(refactor): Move drop down logic into a separate class #9564

Merged
merged 2 commits into from
Aug 16, 2019
Merged

report(refactor): Move drop down logic into a separate class #9564

merged 2 commits into from
Aug 16, 2019

Conversation

johnemau
Copy link
Contributor

@johnemau johnemau commented Aug 15, 2019

Summary
As requested, this change refactors the reports drop down into its own class because it has grown to support the ARIA action menu pattern in #9433.

The new DropDown class is responsible for UI interactions with the action button and menu, including keydown handlers on the document to close the drop down on ESC.

The ReportUIFeatures class is still responsible for performing actions when a user activates a link in the drop down menu.

Related Issues/PRs
#9433

@johnemau johnemau marked this pull request as ready for review August 15, 2019 20:28
@johnemau johnemau changed the title report(refactor): Move drop down logic into separate class report(refactor): Move drop down logic into a separate class Aug 15, 2019
Copy link
Member

@paulirish paulirish left a comment

Choose a reason for hiding this comment

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

this is great.

mostly some fun renaming suggestions for ya.

thanks

@johnemau
Copy link
Contributor Author

mostly some fun renaming suggestions for ya.

Thank you for the review, I have completed the suggested renames/refactor, please take another look!

Copy link
Member

@paulirish paulirish left a comment

Choose a reason for hiding this comment

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

she's a beauty. thanks

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

Successfully merging this pull request may close these issues.

3 participants