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.6.7] VSnackBar Centered not working #19870

Closed
Mattiam2 opened this issue May 23, 2024 · 0 comments · Fixed by #19878
Closed

[Bug Report][3.6.7] VSnackBar Centered not working #19870

Mattiam2 opened this issue May 23, 2024 · 0 comments · Fixed by #19878
Assignees
Labels
C: VSnackbar VSnackbar T: bug Functionality that does not work as intended/expected
Milestone

Comments

@Mattiam2
Copy link

Mattiam2 commented May 23, 2024

Environment

Vuetify Version: 3.6.7
Last working version: 3.5.18
Vue Version: 3.4.27
Browsers: Chrome 124.0.0.0, Google Chrome, Safari
OS: Linux, Mac OS 10.15.7, Windows, Mac OSX

Steps to reproduce

Just create a VSnackBar with the prop location="center"

Expected Behavior

VSnackBar should be displayed in the vertical center of the screen

Actual Behavior

VSnackBar is displayed at the bottom of the screen

Reproduction Link

https://play.vuetifyjs.com/#...

Other comments

The code in this line (

&:not(.v-snackbar--centered):not(.v-snackbar--top)
) overrides the css "align-items: center" when VSnackBar has prop location "center".

There is obviously a typo because the css class given when SnackBar has location center is ".v-snackbar--center" but the css that set its default is:

&:not(.v-snackbar--centered):not(.v-snackbar--top)
      align-items: flex-end

I propose to fix this issue by replacing v-snackbar--centered with v-snackbar--center, as follows:

&:not(.v-snackbar--center):not(.v-snackbar--top)
      align-items: flex-end
@johnleider johnleider added this to the v3.6.x milestone May 28, 2024
@johnleider johnleider added T: bug Functionality that does not work as intended/expected C: VSnackbar VSnackbar and removed S: triage labels May 28, 2024
@johnleider johnleider self-assigned this May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VSnackbar VSnackbar T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants