Skip to content

Commit

Permalink
fix: [Bug-4715-Admin] Added border in high constrast mode (#1046)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohini-Microsoft committed Jun 18, 2024
1 parent a5b8ad0 commit c9c5df7
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 32 deletions.
14 changes: 6 additions & 8 deletions code/backend/pages/01_Ingest_Data.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,13 @@
layout="wide",
menu_items=None,
)
mod_page_style = """
<style>
#MainMenu {visibility: hidden;}
footer {visibility: hidden;}
header {visibility: hidden;}
</style>
"""
st.markdown(mod_page_style, unsafe_allow_html=True)

def load_css(file_path):
with open(file_path) as f:
st.markdown(f"<style>{f.read()}</style>", unsafe_allow_html=True)

# Load the common CSS
load_css("pages/common.css")

def reprocess_all():
backend_url = urllib.parse.urljoin(
Expand Down
16 changes: 8 additions & 8 deletions code/backend/pages/02_Explore_Data.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,6 @@
layout="wide",
menu_items=None,
)
mod_page_style = """
<style>
#MainMenu {visibility: hidden;}
footer {visibility: hidden;}
header {visibility: hidden;}
</style>
"""
st.markdown(mod_page_style, unsafe_allow_html=True)

# CSS to inject contained in a string
hide_table_row_index = """
Expand All @@ -35,6 +27,14 @@
# Inject CSS with Markdown
st.markdown(hide_table_row_index, unsafe_allow_html=True)

def load_css(file_path):
with open(file_path) as f:
st.markdown(f"<style>{f.read()}</style>", unsafe_allow_html=True)

# Load the common CSS
load_css("pages/common.css")


try:
search_handler = Search.get_search_handler(env_helper)

Expand Down
16 changes: 8 additions & 8 deletions code/backend/pages/03_Delete_Data.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
layout="wide",
menu_items=None,
)
mod_page_style = """
<style>
#MainMenu {visibility: hidden;}
footer {visibility: hidden;}
header {visibility: hidden;}
</style>
"""
st.markdown(mod_page_style, unsafe_allow_html=True)

def load_css(file_path):
with open(file_path) as f:
st.markdown(f"<style>{f.read()}</style>", unsafe_allow_html=True)

# Load the common CSS
load_css("pages/common.css")


# CSS to inject contained in a string
hide_table_row_index = """
Expand Down
14 changes: 6 additions & 8 deletions code/backend/pages/04_Configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,12 @@
menu_items=None,
)

MOD_PAGE_STYLE = """
<style>
#MainMenu {visibility: hidden;}
footer {visibility: hidden;}
header {visibility: hidden;}
</style>
"""
st.markdown(MOD_PAGE_STYLE, unsafe_allow_html=True)
def load_css(file_path):
with open(file_path) as f:
st.markdown(f"<style>{f.read()}</style>", unsafe_allow_html=True)

# Load the common CSS
load_css("pages/common.css")

config = ConfigHelper.get_active_config_or_default()

Expand Down

0 comments on commit c9c5df7

Please sign in to comment.