-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
@mantine/core - Image - Long alt text appears behind placeholder #3883
Comments
Which firefox version are you using? |
I can see the alt text overflowing on the latest version on ff on macos |
Yeah i saw that i will fix it and submit pull request @rtivital |
The problem is that image has ::before that render the alt and this ::before has |
Yeah, it's clearly different handling. In Chrome an If you must have the same appearance as in Chrome, you can just add the following to the MantineProvider:
|
One solution could be to make alt text transparent: |
What package has an issue
@mantine/core
Describe the bug
(On Firefox) If an Image has alt text that is larger than the placeholder, it will "break out" from behind the placeholder image.
NOTE: This only seems to happen in the Firefox browser and not in the Chrome browser. Some sort of different handling with the img tag alt text?
What version of @mantine/hooks page do you have in package.json?
6.0.1
If possible, please include a link to a codesandbox with the reproduced problem
https://codesandbox.io/s/kind-sanderson-jykbdz
Do you know how to fix the issue
No
Are you willing to participate in fixing this issue and create a pull request with the fix
Yes
Possible fix
One solution is to use the logic that Mantine uses to determine whether to show or hide the placeholder to remove the
<img>
tag from the DOM. But not sure if this is the desired solution since this issue only seems to affect FirefoxThe text was updated successfully, but these errors were encountered: