-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[Skeleton] Use span element for text variant #19241
Conversation
… text is used in inline html tags like <p>
Details of bundle changes.Comparing: 341d0f3...c4547fd
|
refInstanceof: window.HTMLSpanElement, | ||
})); | ||
|
||
describeConformance(<Skeleton variant="text" />, () => ({ |
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.
Let's use a single describeConformance
. They would be too much duplication otherwise.
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.
so only the first one without a variant?
what is the error of the broken check? i don't get it
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.
One with the default props should great.
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 can have a small dedicated test instead.
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.
ok if i run yarn docs:api
the docs will get updated. but than the default value is messed up
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.
What do you mean by "messed up", like more accurate?
In this case, always using span
sounds better, which means giving less weight to the div vs span semantic in the tradeoff, considering the dimension negligible: https://stackoverflow.com/questions/2961889/is-there-a-semantic-difference-spans-and-divs/2961920.
I can't push commits on your branch. I have continued the changes in #19278. Thank you raising the issue and putting a solution in motion |
fix #19210
use as default tag to prevent error log if Skeleto text is used in inline html tags like