-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
[core] Duplication between Floating UI and Base UI #454
Comments
Since 1 and 2 are small utilities, I don't think they're too major to worry about right now For 3, to support tabbable portals, the |
@atomiks one of the limitations with using tababble focus-trap/tabbable#167 (comment) |
Summary
I'm opening this issue for the future, after we see product market fit. I don't think that we should care too much about this now.
But after, it seems that we have an opportunity to remove code duplication between Base UI and Floating UI to reduce the bundle size, and avoid fixing bugs twice. The duplications that I could see:
FocusTrap
was explicitly to not depend ontabbable
to avoid its bundle size and rely on the browser instead. [Modal] Better focus management material-ui#15450 divea bit into it. Also, [FocusTrap] Trap to only focus on tabbable elements material-ui#23827 is interesting as show that there are strong different ways to approach this.
The text was updated successfully, but these errors were encountered: