-
-
Notifications
You must be signed in to change notification settings - Fork 730
Close button overlays toast text #1204
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
Comments
Hey @cduff, I couldn't reproduce it, normally the content has a padding to avoid that. Could it be that you have some custom css rules applied? May I ask you to reproduce the issue on stackblitz? Thank you |
Hi @fkhadra, thanks for your response on this. Try this StackBlitz: https://stackblitz.com/edit/vitejs-vite-rhrg1ybn?file=src%2FApp.tsx |
Looks like the padding is 14px Line 130 in a6250d5
But the button is 20px wide and 25px tall (3px come from the line-height) Lines 298 to 299 in a6250d5
Lines 322 to 323 in a6250d5
I would probably update the SVG so it's square <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<path d="m9.48 8 3.75 3.75-1.48 1.48L8 9.48l-3.75 3.75-1.48-1.48L6.52 8 2.77 4.25l1.48-1.48L8 6.52l3.75-3.75 1.48 1.48L9.48 8z"/>
</svg> Set the height and width of the SVG to 14px. Then the toast will look like this The extra s' were added to get as close to the close button as I could. |
For example:
Since v11 the close button is absolutely positioned. However, with its default position and with the default toast padding, it's possible for the close button to overlay toast text. This didn't happen <v11.
Should the default styling avoid this?
The text was updated successfully, but these errors were encountered: