# git: Only show header staging checkboxes when hovering the header itself \(\#54204\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/7fd07dda55ee826205ac9c7d761702a4d8f49a9c)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 7fd07dda55ee826205ac9c7d761702a4d8f49a9c

Requested commit: 7fd07dda55ee826205ac9c7d761702a4d8f49a9c

Commit: 7fd07dda55ee826205ac9c7d761702a4d8f49a9c

Tree: 3679d19f0166a292001ccfe384b9f5c15776804f

Author: Cole Miller

Committer: GitHub

## Message

```
git: Only show header staging checkboxes when hovering the header itself (#54204)

Previously, we would show these checkboxes whenever hovering anywhere in
the `entries` group, which covers all headers and status entries. This
seems excessive, and also has a problem that the header checkboxes
disappear when the mouse moves over a non-header (status entry)
checkbox, presumably because those have `stop_propagation`. Now, we only
show the checkbox for a header when that specific header is hovered.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- N/A
```

## Parents

- [2a6ee04013eac19eef87dcafa90fc6e081e7e19c](https://git.cafe/gitcafe/zed/commit/2a6ee04013eac19eef87dcafa90fc6e081e7e19c?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/7fd07dda55ee826205ac9c7d761702a4d8f49a9c?format=markdown)
