SVGs in Navigation does not work #801
-
Hello 😊 If I use a ternary operator for the source of the SVG, for some reason the icon for the darkmode is still used in the lightmode.
Here is our code and we are working in the feature-darkmode branch: Link to our code Thank you! 😊 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
We discussed the solution together: |
Beta Was this translation helpful? Give feedback.
We discussed the solution together:
The problem why the dark mode was also used in light mode was the missing
theme
prop that was not handed over to theLayout
component from the_app.js
and was therefore alwaysundefined
for theNavigation
component that receives this prop via theLayout
component. :)