Vuetify: [Feature Request] Add customization to v-dialog overlay 2.0

Created on 5 Aug 2019  路  1Comment  路  Source: vuetifyjs/vuetify

Problem to solve

Right now the v-dialog component has a fixed and unchangable overlay color that is set to "opacity: 0.46; background-color: rgb(33, 33, 33);". That is the v-overlay__scrim element. The problem is that users cannot change the opacity of the background overlay for the dialogs.

The only way right now to change the opacity of the overlay is to manually override the class. But it still doesn't work if there are multiple dialogs on a single page.

Proposed solution

The solution is to simply add a background (or overlay) property to the v-dialog component. This allows a user to change both the opacity and the color of dialog's overlay:

<v-dialog
   background="rgba(33, 33, 33, 0.50)"
   v-model="dialog"
>
feature maybe

Most helpful comment

+1 for this.

My workaround :

<v-overlay :opacity="0.8">
        <v-dialog 
            v-model="dialog" 
            persistent 
            hide-overlay
        >
        </v-dialog>
</v-overlay>

Depending on your implementation of the dialog, you might need to use the v-model="dialog" on v-overlay aswel.

>All comments

+1 for this.

My workaround :

<v-overlay :opacity="0.8">
        <v-dialog 
            v-model="dialog" 
            persistent 
            hide-overlay
        >
        </v-dialog>
</v-overlay>

Depending on your implementation of the dialog, you might need to use the v-model="dialog" on v-overlay aswel.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cawa-93 picture cawa-93  路  3Comments

Webifi picture Webifi  路  3Comments

milleraa picture milleraa  路  3Comments

KuroThing picture KuroThing  路  3Comments

jofftiquez picture jofftiquez  路  3Comments