# Ionic 4 - Documentation error "icon-only"?

**URL:** <https://forum.ionicframework.com/t/ionic-4-documentation-error-icon-only/171967>\
**Category:** ionic-v3\
**Created:** [August 28, 2019, 12:26am UTC](https://forum.ionicframework.com/t/ionic-4-documentation-error-icon-only/171967 "2019-08-28T00:26:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![IonicGeoff](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ionicgeoff/32/128657_2.png) [@IonicGeoff](https://forum.ionicframework.com/u/IonicGeoff)\
**Post date:** [August 28, 2019, 12:26am UTC](https://forum.ionicframework.com/t/ionic-4-documentation-error-icon-only/171967/1 "2019-08-28T00:26:53Z")

</div>

Trying to get an icon button to display without the button, the docs say that…

```auto
<ion-button>
  <ion-icon slot="icon-only" name="star"></ion-icon>
</ion-button>

```

…should do it, but it doesn’t!

Had to revert to …

```auto
<button ion-button>
  <ion-icon slot="icon-only" name="star"></ion-icon>
</button>

```

---

<div class="post-metadata">

**Author:** ![IonicGeoff](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ionicgeoff/32/128657_2.png) [@IonicGeoff](https://forum.ionicframework.com/u/IonicGeoff)\
**Post date:** [August 28, 2019, 12:42am UTC](https://forum.ionicframework.com/t/ionic-4-documentation-error-icon-only/171967/2 "2019-08-28T00:42:05Z")

</div>

OK, this gets the desired result…

```auto
<ion-button fill="clear" >{{a.variable}}
  <ion-icon name="map" slot="end" size="large"></ion-icon>
</ion-button>

```

…fill=“clear” removes the button outline from the icon. (And vertically aligns the icon with the text!)
