-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[TrapFocus] Rename TrapFocus to FocusTrap #34216
[TrapFocus] Rename TrapFocus to FocusTrap #34216
Conversation
Hi, I had a problem with the ci/circleci: test_regressions-1, with exist something that I can do to correct this, please, let me know. |
Please merge in/rebase on the latest master. It contains the fix for the regression tests. |
04fdf7c
to
6d6f891
Compare
Thanks, if you need me to do any changes, just let me know. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job! One thing left to do is to add a redirect for those who have bookmarked the old docs page.
Please add entries for the docs and API pages in /docs/public/_redirects (somewhere around line 384)
I just did that! |
I saw you updated the old redirects. That's great, but we also need to introduce new ones pointing from /base/react-trap-focus to /base/react-focus-trap and from /base/api/trap-focus/ to /base/api/focus-trap/ |
it('should loop the tab key', async () => { | ||
await renderFixture('TrapFocus/OpenTrapFocus'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess the fixture/TrapFocus
folder should be removed as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed the folder name to fixtures/FocusTrap
, I didn't delete and create a new one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, looks good to me.
Now, I think I did what you ask :) |
…rnardes/material-ui into rename-trap-focus-component
Could you please rebase on the latest master again? I'll do the final review then, and we should be able to merge this in. |
Done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thanks for your work!
@siriwatknp please remember to include this PR in MUI Base breaking changes section when doing the next release.
Breaking changes
[TrapFocus] Rename TrapFocus to FocusTrap ( [TrapFocus] Rename TrapFocus to FocusTrap #34216) @kabernardes
This PR fixes #33966. As explained in the issue, the component TrapFocus (verb) would be more consistent as FocusTrap (noun).