Skip to content

feat(ui): make "Diff all" a toggle - #20

Merged
ShortArrow merged 1 commit into
mainfrom
feat/diff-all-toggle
Oct 15, 2026
Merged

ShortArrow merged 1 commit into
mainfrom
feat/diff-all-toggle

Conversation

@ShortArrow

@ShortArrow ShortArrow commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

Closes #19.

"Diff all" now closes the diff when every file's diff is already open, so opening and closing it happens from one button. While a single file's diff is open, the button still switches to every file's diff instead of closing it.

The button is no longer idempotent: a second press undoes the first. Its pressed state shows through the existing active class of LabeledButton.

Accessibility

LabeledButton now sets aria-pressed from active, so every toggle that uses it is announced as one: the log, info and settings buttons, the file list's flat and tree views, the diff's inline and split views, and the log's wrap. A button that never passes active gets no aria-pressed, as before.

Pressed again it closes the diff, so opening and closing no longer means
reaching for the pane's close button (#19).
@ShortArrow
ShortArrow marked this pull request as ready for review October 15, 2026 07:54
@ShortArrow
ShortArrow merged commit b5f29cf into main Oct 15, 2026
11 checks passed
@ShortArrow
ShortArrow deleted the feat/diff-all-toggle branch October 15, 2026 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make "Diff all" a toggle

1 participant