-
Notifications
You must be signed in to change notification settings - Fork 46
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
Loading in button #1788
Loading in button #1788
Conversation
In the code provided there are a few mistakes and improvements that can be made:
Please correct these issues in the respective files. If all the mentioned mistakes are corrected, the code is expected to be error-free and no logic issues are observed. All looks good. |
In the code provided, I found some mistakes and typos that need to be addressed:
Overall, the code seems to have multiple typos and mistakes that need to be corrected. I recommend making the necessary adjustments and correcting the typos before stating 'All looks good'. |
|
…otification-service/push-dapp into DAPP-1746-button-loading
In the Button.tsx file:
In the Button.utils.ts file:
Please make the necessary corrections as mentioned above. All looks good. |
In the first file (Button.tsx), there are a few issues and improvements needed:
${({ variant, loading }) => getButtonVariantStyles(variant || 'primary', loading || false)}
[role='spinner'] {
margin: 6.667px; /* Assuming this line is correct */
}
:before, :after {
background: var(--components-button-primary-icon-default);
}
Overall, after addressing the above improvements, the rest of the code seems structured and does what is intended. In the second file (Button.utils.ts), there seems to be a formatting issue within the In the third file (Spinner.tsx), the code looks fine. No issues were found. If you make the necessary corrections and address the issues mentioned, the code should be in good shape. |
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.
- We need to fix the spinner border width for different screen sizes.
- Let's use svg instead of div.
- Fix the alignment of the spinner in different screen sizes.
- Removed any additional css we have applied to make the div spinner work.
- apply an additional check in the button to not change color on press when it's in loading state.
…otification-service/push-dapp into DAPP-1746-button-loading
In
In Overall, please check the code comments, CSS styles, and code logic to ensure everything works as intended. If the suggested changes are made, the code should be good to go. |
All looks good. |
Pull Request Template
Ticket Number
Description
Type of Change
Checklist
Frontend Guidelines
Build & Testing
Screenshots/Video with Explanation
Additional Context
Review & Approvals
Notes