How to use TopNavigation with AppLayout in dark mode #3058
Replies: 4 comments
-
Hi, thanks for reaching out. It is correct that border is added in the demo, not in top navigation. The border is added in the |
Beta Was this translation helpful? Give feedback.
-
@cansuaa Thanks for the confirmation - could you clarify if this is technically a bug or is this intentionally not supported / requires the user to manually add the border? Is there a best practice way to add it that would work across light/dark mode versus hard coding a color? I guess I was hoping for a small snippet or something if there was a recommended way of doing it. |
Beta Was this translation helpful? Give feedback.
-
Hi, I will discuss this with the team. |
Beta Was this translation helpful? Give feedback.
-
Hi, apologies for the delayed response. I discussed with the team and it's decided to add the border to the component directly. I'll work on this. |
Beta Was this translation helpful? Give feedback.
-
Is there a minimal example on how to properly use the TopNavigation component with the AppLayout component in dark mode? Here's a minimal example I have, but it doesn't have the proper bottom border like the actual demo does. Do I need to manually style this to get it to work? If so, is that a bug, it seems odd I would need to manually add a single 1px border when the components should otherwise work together?
I need to manually set the
borderBlockEnd
property to have a proper matching bottom border.What currently renders:
What I believe should render:
Minimal example code:
Beta Was this translation helpful? Give feedback.
All reactions