Collapsible Room List - Prevent any interaction with the separator when the panel is expanded (#32910)

* Use display:none to hide separator

Instead of using zero width and zero opacity. This will prevent any
interaction with the separator.

* Update snapshot
This commit is contained in:
R Midhun Suresh
2026-03-29 12:52:16 +00:00
committed by GitHub
parent 1dbad6101e
commit 4f9a0321b5
2 changed files with 3 additions and 9 deletions
@@ -6,11 +6,8 @@
*/ */
.separator { .separator {
display: flex;
align-items: center;
/* Hide the separator by default */ /* Hide the separator by default */
width: 0px; display: none;
opacity: 0;
/* Necessary to avoid weird focus outlines (doubled on one side, absent on one side etc...) */ /* Necessary to avoid weird focus outlines (doubled on one side, absent on one side etc...) */
outline-offset: -2px; outline-offset: -2px;
} }
@@ -22,7 +19,8 @@
.visible { .visible {
/* Show the separator when the left panel is collapsed */ /* Show the separator when the left panel is collapsed */
opacity: 100%; display: flex;
align-items: center;
width: 12px; width: 12px;
border-right: 1px solid var(--cpd-color-bg-subtle-primary); border-right: 1px solid var(--cpd-color-bg-subtle-primary);
} }
@@ -188,12 +188,8 @@ exports[`<SeparatorView /> > renders LeftPanelExpanded story 1`] = `
</div> </div>
</div> </div>
<div <div
aria-controls="_r_9_"
aria-label="Click or drag to expand" aria-label="Click or drag to expand"
aria-orientation="vertical" aria-orientation="vertical"
aria-valuemax="96.618"
aria-valuemin="0"
aria-valuenow="48.309"
class="separator Separator" class="separator Separator"
data-separator="inactive" data-separator="inactive"
data-testid="_r_a_" data-testid="_r_a_"