We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It would remove the Google Lighthouse errors for:
"Image elements do not have explicit width and height"
Which also brings performance gains.
Height and width should be passed from the Avatar props.
The text was updated successfully, but these errors were encountered:
Seems this is a false positive since image holder div has already config the size style.
Sorry, something went wrong.
So using something like this, it does output style on the wrapper. It does not add width and height attributes to the image provided.
<Avatar shape="square" size={32} src={ 'https://example.com/image.png' } alt={`alt text`} />
Can be seen in Chrome:
You'd want something like this:
you can temporarily fix it:
.ant-comment-avatar img { width: inherit !important; height: inherit !important; border-radius: inherit !important; }
i hope it gets fixed soon too
No branches or pull requests
What problem does this feature solve?
It would remove the Google Lighthouse errors for:
"Image elements do not have explicit width and height"
Which also brings performance gains.
What does the proposed API look like?
Height and width should be passed from the Avatar props.
The text was updated successfully, but these errors were encountered: