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

The button styles in UModal body should not be affected by UButtonGroup. #2978

Open
Cyanhall opened this issue Dec 25, 2024 · 0 comments
Open
Labels
bug Something isn't working triage v3 #1289

Comments

@Cyanhall
Copy link

Cyanhall commented Dec 25, 2024

Environment



Is this bug related to Nuxt or Vue?

Nuxt

Version

3.0.0-alpha.10

Reproduction

https://github.com/Cyanhall/nuxt-ui-v3-demo/tree/main/demo4

Description

The button styles in UModal body should not be affected by UButtonGroup. I'm not sure if this is a bug or a feature.

<template>
  <UButtonGroup>
    <UModal
      :close="true"
      v-model:open="open"
      title="Test"
    >
      <UButton
        variant="outline"
        color="neutral"
        @click="open = true"
      >
       Modal Button
      </UButton>
      <template #body>
        Body
      </template>
      <template #footer>
        <div class="flex justify-start w-full gap-4">
          <UButton
            variant="outline"
            class="rounded"
            label="Cancel"
            @click="open = false"
          />
          <UButton
            variant="outline"
            class="rounded"
            label="Middle"
            @click="open = false"
          />
          <UButton
            type="submit"
            class="rounded"
            label="Confirm"
            color="primary"
            @click="open = false"
          />
        </div>
      </template>
    </UModal>
    <UButton
      variant="outline"
      color="neutral"
      @click=""
    >
     Other Button
    </UButton>
  </UButtonGroup>
</template>
Image
Image

Additional context

No response

Logs

@Cyanhall Cyanhall added bug Something isn't working triage v3 #1289 labels Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage v3 #1289
Projects
None yet
Development

No branches or pull requests

1 participant