Siemens Industrial Experience is a design system for designers and developers, to consistently create the perfect digital experience for industrial software products.
[X] I have not leaked any internal/restricted information like screenshots, videos, code snippets, links etc.
What happened?
If you're using Siemens iX toasts, and you're using setToastPosition('top-right'), if you then npm run build your project, and double-click on index.html, toasts are still positioned in the default bottom-right corner.
If you npm start on the code I've added to reproduce the issue, and click on the button, toasts appear in the top-right. But if you npm run build the application, and double-click on index.html, toasts appear in the bottom-right.
The workaround is to add an <IxToastContainer /> to App.js as follows:
Prerequisites
What happened?
If you're using Siemens iX toasts, and you're using
setToastPosition('top-right')
, if you thennpm run build
your project, and double-click on index.html, toasts are still positioned in the default bottom-right corner.If you
npm start
on the code I've added to reproduce the issue, and click on the button, toasts appear in the top-right. But if younpm run build
the application, and double-click on index.html, toasts appear in the bottom-right.The workaround is to add an
<IxToastContainer />
to App.js as follows:What type of frontend framework are you seeing the problem on?
React
Which version of iX do you use?
v2.3.0
Code to produce this issue.