Skeleton provides error in <p> tags
See original GitHub issue- The issue is present in the latest release.
- I have searched the issues of this repository and believe that this is not a duplicate.
Current Behavior 😯
Got an error in the logs
Expected Behavior 🤔
No error logs
Steps to Reproduce 🕹
Put a Skeleton in a ListItemText secondary prop. Than i got error logs in develop mode.
It’s because a <div>
in a <p>
(Secondary Typography) is invalid
Your Environment 🌎
Tech | Version |
---|---|
Material-UI | v4.8.3 |
React | v16.11.0 |
Material-UI/lab | 4.0.0-alpha.39 |
Solution
I think a skeletion variant=text should be <span>
instead of a <div>
.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Skeleton provides error in <p> tags #19210 - mui/material-ui
The issue is present in the latest release. I have searched the issues of this repository and believe that this is not a...
Read more >Using an HTML Skeleton - W3Schools
The HTML page is missing head tags. Head tags are not needed in HTML. In HTML, everything before the body tag is considered...
Read more >What is HTML skeleton? | Sololearn: Learn to code for FREE!
The basic HTML skeleton is the set of tags required of every HTML web page you build. The tags that make up the...
Read more >What is skeleton in HTML?
The basic HTML skeleton is the set of tags required of every HTML web page you build. The tags that make up the...
Read more >How to expand error messages truncated by Skeleton (<< >>)
An answer to the original question of how to show the full message abbreviated by the skeletons can be found in an old...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
yes the rendering is display: block. but the semantic of the html would be more correct if we use a div for block things and span for text
or this way?
a div makes sense for
rect
andcircle