-
Notifications
You must be signed in to change notification settings - Fork 411
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
chore: <p> cannot appear as a descendant of <p>. #3417
Conversation
Branch preview✅ Deploy successful! |
ESLint Summary View Full Report
Report generated by eslint-plus-action |
📦 Next.js Bundle Analysis for safe-wallet-webThis analysis was generated by the Next.js Bundle Analysis action. 🤖
|
Page | Size (compressed) |
---|---|
global |
1015.86 KB (🟡 +6 B) |
Details
The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.
Any third party scripts you have added directly to your app using the <script>
tag are not accounted for in this analysis
If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!
Coverage report
Show files with reduced coverage 🔻
Test suite run success1410 tests passing in 195 suites. Report generated by 🧪jest coverage report action from 04fe8dc |
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.
This solution isn’t very good for semantics/a11y though, is it? I would rather we find the places where this warning is thrown and fix just them.
fix: Warning: validateDOMNesting(...): <p> cannot appear as a descendant of <p>. In some locations we had <Typography variant=“body1”> nested inside another <Typography> this renders 2 <p> tags inside of each-other and that is not valid. The other way around was having a <Box> that is nested inside of a Typography which also seems to be not valid.
0b38a15
to
04fe8dc
Compare
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.
👍
note to testers: I can't see this error in production, it seems to only appear with the local dev release, so you'll have to test this locally
fix: Warning: validateDOMNesting(...):
cannot appear as a descendant of
.
In some locations we had nested inside another this renders 2
tags inside of each-other and that is not valid. The other way around was having a that is nested inside of a Typograpühy which also seems to be not valid.
How to test it
run the website with 'yarn dev' -> open the wallet box on top -> you shouldn't see:
Screenshots
Checklist