Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report][3.0.0] v-snackbar scale-transition is not working. #15474

Assignees
Labels
C: VSnackbar VSnackbar T: bug Functionality that does not work as intended/expected

Comments

@alokVishu
Copy link
Contributor

alokVishu commented Jul 20, 2022

Environment

Vuetify Version: 3.0.0-beta.5
Vue Version: 3.2.36
Browsers: Chrome 103.0.5060.114
OS: Windows 10

Steps to reproduce

Add transition prop. transition="scale-transition"

Expected Behavior

It should work like other transitions.

Actual Behavior

it is just fade in the center location. localtion='center' but it work in start and end location

Reproduction Link

https://codepen.io/Alokdev/pen/MWVmWGE?editors=101

@johnleider johnleider added T: bug Functionality that does not work as intended/expected C: VSnackbar VSnackbar and removed S: triage labels Jul 20, 2022
@johnleider johnleider added this to the v3.0.0-beta milestone Jul 20, 2022
@johnleider johnleider modified the milestones: v3.0.0-beta, v3.0.x Aug 9, 2022
@johnleider johnleider changed the title [Bug Report][3.0.0-beta.5] v-snackbar scale-transition is not working. [Bug Report][3.0.0] v-snackbar scale-transition is not working. Nov 17, 2022
@KaelWD KaelWD modified the milestones: v3.0.x, v3.1.x Jan 6, 2023
@johnleider
Copy link
Member

As far as I can tell, this is caused by locationStyles. The transform is taking priority and custom transitions, which is why it's always a fade transition, basically.

https://github.com/vuetifyjs/vuetify/blob/master/packages/vuetify/src/composables/location.ts

You can see the transitions work by commenting this out in VSnackbar:
image

@johnleider johnleider removed this from the v3.1.x milestone Mar 27, 2023
@johnleider johnleider added this to the v3.x.x milestone May 2, 2023
@JulianPinzaru
Copy link

Environment

Vuetify Version: 3.0.0-beta.5 Vue Version: 3.2.36 Browsers: Chrome 103.0.5060.114 OS: Windows 10

Steps to reproduce

Add transition prop. transition="scale-transition"

Expected Behavior

It should work like other transitions.

Actual Behavior

it is just fade in the center location. localtion='center' but it work in start and end location

Reproduction Link

https://codepen.io/Alokdev/pen/MWVmWGE?editors=101

I'm experiencing the same issue. None of the transitions work as expected, except for v-fade-transition. They only work if location is set to any corner, like top left , bottom right, top right, bottom left. I hoped the transitions would work for any other locations but corners.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment