FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

refactor(Modal): Simplify disabling of FocusTrap by Venefilyn · Pull Request #2862 · patternfly/patternfly-react · GitHub

refactor(Modal): Simplify disabling of FocusTrap - #2862

Merged
tlabaj merged 1 commit into
patternfly:masterfrom
Venefilyn:refactor/modal-focustrap
Sep 19, 2019
Merged

refactor(Modal): Simplify disabling of FocusTrap#2862
tlabaj merged 1 commit into
patternfly:masterfrom
Venefilyn:refactor/modal-focustrap

Conversation

Venefilyn commented Sep 6, 2019
edited by tlabaj
Loading

Copy link
Copy Markdown
Contributor

What: This removes complexity and uses FocusTrapReact's active prop instead of switching to Bullseye component

Additional issues: #2966

Copy link
Copy Markdown
Collaborator

PatternFly-React preview: https://patternfly-react-pr-2862.surge.sh

{modalBox}
</FocusTrap>
)}
<FocusTrap active={!disableFocusTrap} focusTrapOptions={{ clickOutsideDeactivates: true }} className={css(styles.bullseye)}>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

tlabaj added the PF4 label Sep 9, 2019
tlabaj requested a review from mcoker September 9, 2019 19:19

tlabaj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Can you please link the corresponding issue?

Copy link
Copy Markdown
Contributor Author

@tlabaj there's no corresponding issue. I was looking at a different component that uses FocusTrap and just wanted to clean the code up for Modal

jenny-s51 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Nice fix!

mcoker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

lgtm!

tlabaj commented Sep 18, 2019

Copy link
Copy Markdown
Contributor

Looks great @spytec! We do require a corresponding issue to be linked before we merge a PR. I would be happy to open one for you if you would like.

tlabaj merged commit 2ca0bec into patternfly:master Sep 19, 2019
Venefilyn deleted the refactor/modal-focustrap branch November 13, 2024 12:41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

7 participants


Back | FazBrowse Home | New Git URL