diff --git a/web/e2e-tests/message-basics.test.ts b/web/e2e-tests/message-basics.test.ts index 4f477bd1bd..527b8b311f 100644 --- a/web/e2e-tests/message-basics.test.ts +++ b/web/e2e-tests/message-basics.test.ts @@ -315,7 +315,7 @@ async function test_search_venice(page: Page): Promise { await page.waitForSelector(await get_stream_li(page, "Venice"), {visible: true}); await page.waitForSelector(await get_stream_li(page, "Verona"), {visible: true}); - await page.click("#streams_header .sidebar-title"); + await page.click("#streams_header .left-sidebar-title"); await page.waitForSelector(".input-append.notdisplayed"); } @@ -323,7 +323,7 @@ async function test_stream_search_filters_stream_list(page: Page): Promise console.log("Filter streams using left side bar"); await page.waitForSelector(".input-append.notdisplayed"); // Stream filter box invisible initially - await page.click("#streams_header .sidebar-title"); + await page.click("#streams_header .left-sidebar-title"); await page.waitForSelector("#streams_list .input-append.notdisplayed", {hidden: true}); @@ -377,7 +377,7 @@ async function test_stream_search_filters_stream_list(page: Page): Promise await test_search_venice(page); // Search for beginning of "Verona". - await page.click("#streams_header .sidebar-title"); + await page.click("#streams_header .left-sidebar-title"); await page.type(".stream-list-filter", "ver"); await page.waitForSelector(await get_stream_li(page, "core team"), {hidden: true}); await page.waitForSelector(await get_stream_li(page, "Denmark"), {hidden: true}); diff --git a/web/src/hotspots.js b/web/src/hotspots.js index 5addf87d75..ff5d1306c3 100644 --- a/web/src/hotspots.js +++ b/web/src/hotspots.js @@ -25,7 +25,7 @@ const HOTSPOT_LOCATIONS = new Map([ [ "intro_streams", { - element: "#streams_header .sidebar-title", + element: "#streams_header .left-sidebar-title", offset_x: 1.35, offset_y: 0.39, }, diff --git a/web/src/left_sidebar_navigation_area.js b/web/src/left_sidebar_navigation_area.js index 0c42fdf0c1..23dbd8a30a 100644 --- a/web/src/left_sidebar_navigation_area.js +++ b/web/src/left_sidebar_navigation_area.js @@ -194,7 +194,7 @@ export function initialize() { $("body").on("click", "#views-label-container", (e) => { if ( $(e.currentTarget).hasClass("showing-condensed-navigation") && - !($(e.target).hasClass("sidebar-title") || $(e.target).hasClass("fa-caret-right")) + !($(e.target).hasClass("left-sidebar-title") || $(e.target).hasClass("fa-caret-right")) ) { // Ignore clicks on condensed nav items return; diff --git a/web/src/tippyjs.js b/web/src/tippyjs.js index 46698ed19d..57b7ebbe1c 100644 --- a/web/src/tippyjs.js +++ b/web/src/tippyjs.js @@ -215,7 +215,7 @@ export function initialize() { delegate("body", { target: [ - "#streams_header .sidebar-title", + "#streams_header .left-sidebar-title", "#userlist-title", "#user_filter_icon", "#scroll-to-bottom-button-clickable-area", diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.css index ed33c01cb3..19610c0003 100644 --- a/web/styles/left_sidebar.css +++ b/web/styles/left_sidebar.css @@ -48,6 +48,13 @@ $before_unread_count_padding: 3px; } } +.left-sidebar-title { + color: var(--color-text-sidebar-heading); + font-size: inherit; + font-weight: normal; + display: inline; +} + .sidebar-topic-check, .topic-name, .topic-markers-and-controls { @@ -769,7 +776,7 @@ li.top_left_scheduled_messages { } /* Give the sidebar title through the end of the markers area, if needed. */ - .sidebar-title { + .left-sidebar-title { grid-column: row-content-start / markers-and-controls-end; } } @@ -799,7 +806,7 @@ li.top_left_scheduled_messages { margin-left: 0; } - .sidebar-title { + .left-sidebar-title { grid-area: row-content; /* Override heading margin from Bootstrap. */ margin: 0; diff --git a/web/styles/right_sidebar.css b/web/styles/right_sidebar.css index 2ec839cc87..8ed92a9f6f 100644 --- a/web/styles/right_sidebar.css +++ b/web/styles/right_sidebar.css @@ -7,6 +7,13 @@ $user_status_emoji_width: 24px; } } +.right-sidebar-title { + color: var(--color-text-sidebar-heading); + font-size: inherit; + font-weight: normal; + display: inline; +} + #buddy_list_wrapper { position: relative; margin-left: 0; diff --git a/web/styles/zulip.css b/web/styles/zulip.css index 09dd817292..9a5aebacf0 100644 --- a/web/styles/zulip.css +++ b/web/styles/zulip.css @@ -1171,13 +1171,6 @@ strong { white-space: nowrap; } -.sidebar-title { - color: var(--color-text-sidebar-heading); - font-size: inherit; - font-weight: normal; - display: inline; -} - .tooltip { &.in { font-size: 12px; diff --git a/web/templates/left_sidebar.hbs b/web/templates/left_sidebar.hbs index 66653cc28a..5cd80ac9d3 100644 --- a/web/templates/left_sidebar.hbs +++ b/web/templates/left_sidebar.hbs @@ -3,7 +3,7 @@