-
Notifications
You must be signed in to change notification settings - Fork 15
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
fix: replace div with span in SkeletonLoading component for html cons… #3271
Conversation
This looks like a sensible change! Can we do it on master rather than enhanced-dashboard? :) |
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.
All good here. I approved it, but as @iamsamgibbs said, please change the base branch and do this change on master
, not on the dashboard feature branch
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.
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'm not entirely sure if I agree with this fix since the root issue is that FundsCardsSubTitle
is written like this:
<p className="flex items-center gap-2">
<LoadingSkeleton className="h-[27px] w-[90px] rounded" isLoading={isLoading}>
<span>{value}</span>
</LoadingSkeleton>
<LoadingSkeleton isLoading={isLoading} className="h-5 w-[30px] rounded">
<span className="uppercase text-1">{currency}</span>
</LoadingSkeleton>
</p>
We could just simply replace p
with div
, keep the LoadingSkeleton as a div
and tadaaa
But at the same time, I don't feel strongly about a component that only momentarily appears and this code update gets rid of the error as well anyway so I'm approving this. Great stuff @Nortsova 💯
3b65cd1
to
a4c36e7
Compare
The base branch was changed.
Thank you all for the review! 🙌 I updated the base branch to Thank you @rumzledz for your comment! I really appreciate it 🙌 I considered that fix, but it really depends on our goal. I decided to implement a universal fix for the future, as I believe there could be other cases where we might want to place a Skeleton inside a |
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.
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.
re-approving
a4c36e7
to
9fb49c7
Compare
Description
Before:
![image](https://private-user-images.githubusercontent.com/15706494/373650758-a8aa33ef-136d-45cd-8a06-0e220dcec8bf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTYzNjAsIm5iZiI6MTczOTI1NjA2MCwicGF0aCI6Ii8xNTcwNjQ5NC8zNzM2NTA3NTgtYThhYTMzZWYtMTM2ZC00NWNkLThhMDYtMGUyMjBkY2VjOGJmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDA2NDEwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJkMmViOGRiMzQ4ZmRmYWQ4M2E0NmE0ODQ4NTk2MzE4MTljNjk1ZGI0NGY3ZDVhMWMzODY4ZjUzZDcyYzk1YjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.NyjBgm1zv6Y8Qc0KGXeYjpJju4w3tsOmPgwV2pXZ1K4)
Testing
Step 1. Check that there is no errors in the console
![image](https://private-user-images.githubusercontent.com/15706494/373650884-3c3b8516-c132-445e-a4c0-c3f345215af3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTYzNjAsIm5iZiI6MTczOTI1NjA2MCwicGF0aCI6Ii8xNTcwNjQ5NC8zNzM2NTA4ODQtM2MzYjg1MTYtYzEzMi00NDVlLWE0YzAtYzNmMzQ1MjE1YWYzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDA2NDEwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ3ZGQ2ODY2YWEzZjcyNDVkZWIwMGRlYTE0ZGIxODYzNjViNGI4MmEyYTc5ZmZkNWFhMzM1MzhlZGZlOThlMWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ErWnCf5DjaYB1OXoONYEZDBWe5rfWUFwxAdwB7IiCLw)
Step 2. Check that all Skeletons still shown correctly:
![image](https://private-user-images.githubusercontent.com/15706494/373651057-05b892ea-07e2-412d-bee5-faea5d44f52d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTYzNjAsIm5iZiI6MTczOTI1NjA2MCwicGF0aCI6Ii8xNTcwNjQ5NC8zNzM2NTEwNTctMDViODkyZWEtMDdlMi00MTJkLWJlZTUtZmFlYTVkNDRmNTJkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDA2NDEwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNiOGE5YTZhYTUzZDg1ZmVlZGQyZDgzYWZmZDQ5ZThiODQwMzM2MTA1MmEyNzdkZTZhZDkwOWJmZDUwZDg3ZDYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0._lPF7GBl4fDnojmb3T3ZXwVDRKFfT7Na5-I1t7-ym-I)
Resolves #3268