Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@
width: var(--segmented-icon-toggle-single-width, 54px);
}

/* With only one icon present there is no segment to divide, so the housing border
* reads as an out-of-place box around a lone button. Hide it (keeping the border
* box so the width stays stable) to match the other borderless input controls. */
.monaco-segmented-icon-toggle-container.single .monaco-segmented-icon-toggle {
border-color: transparent;
}

/* Absent cells collapse to zero width (icons slide into place as the housing recenters).
* `visibility: hidden` (delayed until the width/opacity transition finishes) also removes
* the collapsed native button from the Tab order and accessibility tree, so it can't be
Expand Down