# Ionic toast is not appearing properly after upgrading to V7

**URL:** <https://forum.ionicframework.com/t/ionic-toast-is-not-appearing-properly-after-upgrading-to-v7/239432>\
**Category:** Ionic Framework\
**Created:** [February 1, 2024, 4:48am UTC](https://forum.ionicframework.com/t/ionic-toast-is-not-appearing-properly-after-upgrading-to-v7/239432 "2024-02-01T04:48:23Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![twestrick](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/twestrick/32/136131_2.png) [@twestrick](https://forum.ionicframework.com/u/twestrick)\
**Post date:** [February 5, 2024, 4:52pm UTC](https://forum.ionicframework.com/t/ionic-toast-is-not-appearing-properly-after-upgrading-to-v7/239432/6 "2024-02-05T16:52:51Z")

</div>

Ahh, forgot to mention I am using a `toastController` and setting [`cssClass`](https://ionicframework.com/docs/api/toast#cssclass) to `toast-bottom` so it’s a custom class.

```javascript
const myToastController = await toastController.create({
    message: toast.message,
    color: this.getColorFromType(toast.type),
    buttons: buttons,
    position: 'bottom',
    duration: toast.duration,
    cssClass: 'toasts-bottom',
})

```

To modify the Shadow DOM try the code I posted over here - [Ionic change causes css to stop working - any way to modify shadow dom to fix it? - #4 by twestrick](https://forum.ionicframework.com/t/ionic-change-causes-css-to-stop-working-any-way-to-modify-shadow-dom-to-fix-it/238400/4).

---

_[View the full topic](https://forum.ionicframework.com/t/ionic-toast-is-not-appearing-properly-after-upgrading-to-v7/239432)._
