-
-
Notifications
You must be signed in to change notification settings - Fork 951
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
React Aria Button as base of Button component #2904
base: master
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for actualbudget ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Bundle Stats — desktop-clientHey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
Changeset (largest 100 files by percent change)
View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger
Smaller No assets were smaller Unchanged
|
Bundle Stats — loot-coreHey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
Changeset No files were changed View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger No assets were bigger Smaller No assets were smaller Unchanged
|
f36a391
to
3660d22
Compare
f88e4c6
to
37ba9cf
Compare
Might it be easier to keep the existing prop interface for the Your approach is totally fine too and I'm happy to proceed with it though. Just looking out for your sanity since it's A LOT of buttons that will need to be updated. |
I think this approach is the way to go because right now we won't be able to do a bulk port to the react aria button because there seems to be a compatibility issue with the current modal we have. There is an issue on some places of the code where when clicking a button that opens a modal, the modal gets closed immediately (my assumption is that the modal we have right now detects the onMouseUp event and triggers the "shouldCloseOnInteractOutside" logic). But outside that the new aria buttons works as expected. I will also be working on porting Modal to use react aria Modal components to address that. |
This will be the first part of a multi-PR effort to migrate all the buttons in the code to use react-aria-components' Button component under the hood. The plan is to do one PR per page to make it easier to review the changes.
This first one migrates the buttons on the schedules page.