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

refactor(VSnackbar): remove redundant wrapper element #16808

Merged
merged 1 commit into from
Mar 7, 2023

Conversation

KaelWD
Copy link
Member

@KaelWD KaelWD commented Mar 1, 2023

Description

Allows for content-class="elevation-xx"

Markup:

<template>
  <div class="text-center ma-2">
    <v-btn
      @click="snackbar = true"
    >
      Open Snackbar
    </v-btn>
    <v-snackbar
      v-model="snackbar"
      timeout="-1"
    >
      {{ text }}

      <template #actions>
        <v-btn
          color="pink"
          variant="text"
          @click="snackbar = false"
        >
          Close
        </v-btn>
      </template>
    </v-snackbar>
  </div>
</template>

<script>
  export default {
    data: () => ({
      snackbar: false,
      text: `Hello, I'm a snackbar`,
    }),
  }
</script>

@KaelWD KaelWD added T: enhancement Functionality that enhances existing features C: VSnackbar VSnackbar labels Mar 1, 2023
@KaelWD KaelWD added this to the v3.1.x milestone Mar 1, 2023
@KaelWD KaelWD self-assigned this Mar 1, 2023
@KaelWD KaelWD merged commit dc1e603 into master Mar 7, 2023
@KaelWD KaelWD deleted the refactor/snackbar-remove-wrapper branch March 7, 2023 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VSnackbar VSnackbar T: enhancement Functionality that enhances existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant