# Dialog slide in/out on mobile prevented by \`!important\`

**URL:** <https://forum.radzen.com/t/dialog-slide-in-out-on-mobile-prevented-by-important/5184>\
**Category:** Blazor Server\
**Created:** [October 4, 2020, 8:53pm UTC](https://forum.radzen.com/t/dialog-slide-in-out-on-mobile-prevented-by-important/5184 "2020-10-04T20:53:34Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Luke\_O\_Brien](https://forum.radzen.com/user_avatar/forum.radzen.com/luke_o_brien/32/2921_2.png) [@Luke\_O\_Brien](https://forum.radzen.com/u/Luke_O_Brien)\
**Post date:** [October 5, 2020, 1:01pm UTC](https://forum.radzen.com/t/dialog-slide-in-out-on-mobile-prevented-by-important/5184/3 "2020-10-05T13:01:20Z")

</div>

Hi,

Yes I see now why it is `!important`, but this is overriding the element style I give it and I will have to remember to remove those rules each time I upgrade.

What do you think about the idea of a `ui-sized` class?  
Then the developer could diffine their own sizes and not have them overridden.

```auto
var opt = new DialogOptions()
{
    ShowTitle = false,
    Top = "-20vh",
    Height = "20vh",
    Width = "100%",
    Class = "ui-sized another-class"
};

```

```auto
@media (max-width: 768px) {
  .ui-dialog:not(.ui-confirmdialog):not(.ui-sized) {
    width: 100% !important;
    top: 0px !important; }

```

---

_[View the full topic](https://forum.radzen.com/t/dialog-slide-in-out-on-mobile-prevented-by-important/5184)._
