Skip to content

Polish Changes tab Filter Options button and popover#21412

Merged
tidy-dev merged 3 commits intodesktop:developmentfrom
jpedroso:polish-filter-options-button-and-popover
Jan 6, 2026
Merged

Polish Changes tab Filter Options button and popover#21412
tidy-dev merged 3 commits intodesktop:developmentfrom
jpedroso:polish-filter-options-button-and-popover

Conversation

@jpedroso
Copy link
Contributor

Description

This pull request contains a couple UX/UI improvements to the Filter Options button and popover in the Changes tab.

  • Fix the alignment between the popover's Filter Options title and the close button; these are now vertically aligned on the baseline
  • Set a min-width of 200px on the popover to give it a bit breathing room (coincidentally, it's the same width as the tabs)
  • Close the popover when the Filter Options button is clicked again while it's open.

Screenshots

  1. Heading+button vertical alignment & popover minimum width

    2025-12-31-007857
  2. Toggle Filter Option popover open

2025-12-31-007859.mp4

Release notes

Notes:

Fixes the vertical misalignment between Filter Options popover title and
its Close button.
- Changes tab Filter Options button now toggle open/close when clicked (previously only opened)
@github-actions github-actions bot added external Pull request originating outside of the Desktop core team triage For incoming issues labels Dec 31, 2025
@jpedroso
Copy link
Contributor Author

@tidy-dev I have not filed an issue for these small improvements but can put one up upon request if you prefer/need it.

Comment on lines 57 to 59
h3 {
margin-bottom: var(--spacing-half);
margin: 0;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This margin-bottom is what was causing the vertical misalignment between the h3 and the Close button.

I couldn't find an obvious reason why margin-bottom is needed on macOS, but perhaps it's needed on different platforms?

On macOS, the entire rule can also be removed, or tightened up to margin-bottom: 0; if that's preferred. Here's the before/after with margin: 0;:

Before

Image

After

Image

&.filtered-changes-list {
.filter-popover {
text-align: right;
min-width: 200px;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just to give some breathing room to the popover right margin with the current elements. Optional.

Comment on lines -129 to +133
private openFilterOptions = () => {
this.setState({ isFilterOptionsOpen: true })
// Opens the filter options popover, or closes it if it's already open.
private toggleFilterOptionsOpen = () => {
this.setState(prevState => ({
isFilterOptionsOpen: !prevState.isFilterOptionsOpen,
}))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This matches the behavior of other buttons/panels, like Repositories or Branches buttons in the toolbar. Both buttons close their panels if clicked while opened.

Copy link
Contributor

@tidy-dev tidy-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✨ Thanks for those improvements!

@tidy-dev tidy-dev merged commit 34d350f into desktop:development Jan 6, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external Pull request originating outside of the Desktop core team triage For incoming issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants