-
-
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] variant=text wrong size #18170
Comments
Alternatively, text: {
height: 'auto',
marginTop: 0,
marginBottom: 0,
transformOrigin: '0 65%',
transform: 'translateZ(0) scale(1, 0.65)',
textIndent: -999,
'&:empty:before': {
content: '" "'
}
} |
@Mangatt Why should it follow this rule? The component was designed to be a rough approximation of the content. |
@oliviertassinari You don't agree? Different size results in percieved jumps after content is loaded. What are benefits of different size really? |
@Mangatt I had a closer look, actually, it looks pretty slick. I would be curious to try it out with our implementation :). |
@oliviertassinari I'm glad that you like it. I think that as well :) |
@Mangatt Alright, do you want to submit a pull request 💪? |
@oliviertassinari I'll try to in next week 👍 |
@Mangatt Did you had the chance to work on it? :) |
But what about other examples of usage? For example, if user provides |
@oliviertassinari Sorry, I did not, but it is definitely on my schedule. |
@macfire10 the |
@oliviertassinari sure! |
@josh-feldman Thanks for the report. It was taken care of earlier today. |
I suppose that text skeleton should be 1:1 size to real text that he is replacing. Right now, size is way off.
Current Behavior 😯
Size of text skeleton is wrong.
Expected Behavior 🤔
Size of text skeleton should be equal to size of replaced text.
Steps to Reproduce 🕹
https://codesandbox.io/s/create-react-app-7y24f
To work as expected, there has to be 2 changes:
as skeleton childrenThe text was updated successfully, but these errors were encountered: