# Implement \`VisibleOnHover\` for \`IconButton\` \(\#3642\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 057b235c564cf8d5c7e87314f19247eccbfb241e

Requested commit: 057b235c564cf8d5c7e87314f19247eccbfb241e

Commit: 057b235c564cf8d5c7e87314f19247eccbfb241e

Tree: 16c2eef68a8473382f27b1e58291ea8b69f0fddf

Author: Marshall Bowers

Committer: GitHub

## Message

```
Implement `VisibleOnHover` for `IconButton` (#3642)

This PR implements the `VisibleOnHover` trait for `IconButton`s.

I noticed that in a lot of places we were wrapping an `IconButton` in an
extra `div` just so we could call `visible_on_hover` on it. By
implementing the trait on `IconButton` directly it allows us to avoid
the interstitial `div` entirely.

Release Notes:

- N/A
```

## Parents

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

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