-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Labels
feature:st.navigationRelated to `st.navigation`Related to `st.navigation`priority:P1High priority - fix within two weeksHigh priority - fix within two weeksstatus:confirmedBug has been confirmed by the Streamlit teamBug has been confirmed by the Streamlit teamtype:bugSomething isn't working as expectedSomething isn't working as expected
Description
Checklist
- I have searched the existing issues for similar issues.
- I added a very descriptive title to this issue.
- I have provided sufficient information below to help reproduce this issue.
Summary
Since Streamlit 1.52 (cool release by the way! ❤️ ), with st.navigation(position="top"), the navigation appears in both the top and sidebar.
Reproducible Code Example
import streamlit as st
def a():
st.header("Header A")
def b():
st.header("Header B")
st.sidebar.header("Sidebar Header")
st.navigation((a, b), position="top").run()Steps To Reproduce
Try the above code example.
Expected Behavior
From the documentation:
If this is
"top", the navigation appears in the top header of the app.
The navigation should only appear in the top bar, as it did in Streamlit 1.51.
Current Behavior
Since Streamlit 1.52, the navigation appears in both the top and sidebar.
Is this a regression?
- Yes, this used to work in a previous version.
Debug info
- Streamlit version: 1.52.0
- Python version: 3.11.9
- Operating System: MacOS
- Browser: Chrome
Additional Information
The position="sidebar" and position="hidden" seem to behave as expected.
github-actions, mamiba, sfc-gh-lmasuch and peter1357908
Metadata
Metadata
Assignees
Labels
feature:st.navigationRelated to `st.navigation`Related to `st.navigation`priority:P1High priority - fix within two weeksHigh priority - fix within two weeksstatus:confirmedBug has been confirmed by the Streamlit teamBug has been confirmed by the Streamlit teamtype:bugSomething isn't working as expectedSomething isn't working as expected