Skip to content

Sidebar fixes #47

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

Merged
merged 6 commits into from
Aug 14, 2024
Merged

Sidebar fixes #47

merged 6 commits into from
Aug 14, 2024

Conversation

jivey
Copy link
Member

@jivey jivey commented Aug 13, 2024

https://openstax.atlassian.net/browse/DISCO-29

@bethshook Tagging you on this one since you reviewed the initial sidebar PR. While I was looking into a fix for the re-rendering issue I saw (just needed a useCallback on the MaybeModal) I realized this could be a lot simpler by pulling in FocusScope instead of the modal approach. This feels less bug prone for remount and animation issues, and the toggle button no longer refocusing is a less confusing experience with a screen reader.

@jivey jivey requested a review from bethshook August 13, 2024 22:16
@@ -24,6 +24,7 @@ export * from './components/Text';
export * from './components/ToastContainer';
export * from './components/Tooltip';
export * as Forms from './components/forms';
export * from './constants';
Copy link
Member Author

Choose a reason for hiding this comment

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

This is unrelated but I need this for an assignments style.

@bethshook
Copy link
Contributor

looks good - that's a handy component

@jivey jivey merged commit 31338f0 into main Aug 14, 2024
2 checks passed
@jivey jivey deleted the sidebar-fixes branch August 14, 2024 21:21
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