---
name: "[up-close]"
area: "API"
kind: "HTML attribute"
parent: "up.layer module"
visibility: "deprecated"
url: "https://unpoly.com/api/up-close"
---
<nav aria-label="Unpoly docs">[All docs](https://unpoly.com/index.md) · [up.layer module](https://unpoly.com/api/up.layer.md)</nav>

# [up-close]

**This feature has been deprecated**. Use [`[up-dismiss]`](https://unpoly.com/api/up-dismiss.md) instead.

Load [`unpoly-migrate.js`](https://unpoly.com/changes/upgrading.md) to polyfill deprecated features.

When this element is clicked, closes a currently open overlay.

Does nothing if no overlay is currently open.

To make a link that closes the current overlay, but follows to a fallback destination on the root layer:

```
<a href="/fallback" up-close>Okay</a>
```

