Skip to content
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

JSX returning translations change toast styling #432

Open
jimmailcamp opened this issue Jun 4, 2024 · 0 comments
Open

JSX returning translations change toast styling #432

jimmailcamp opened this issue Jun 4, 2024 · 0 comments

Comments

@jimmailcamp
Copy link

Describe the feature / bug 📝:

When using a component to return the message, which is often the case because I'm using i18n translation components quite often, the styling of the toasts change. For example, the default icon on success or info dissapears and the fontweight changes.

yes I understand the solution is to return a string, but in this specific case that's NOT possible in certain scenarios due to invalid hook calls outside of components.

Steps to reproduce the bug 🔁:

  1. Create a tsx component that returns a string in a fragment.
  2. toast.success();
  3. Styling is different from when passing plain string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant