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

Button - Danger color ghost variant issue #4001

Closed
VivekSambath opened this issue Nov 6, 2024 · 4 comments
Closed

Button - Danger color ghost variant issue #4001

VivekSambath opened this issue Nov 6, 2024 · 4 comments

Comments

@VivekSambath
Copy link

NextUI Version

2.4.8

Describe the bug

'use client';

import {
extendVariants,
Button as NextButton,
colorVariants
} from '@nextui-org/react';

const Button = extendVariants(NextButton, {
variants: {
size: {
sm: 'rounded-full font-medium',
md: 'rounded-full font-medium',
lg: 'rounded-full font-medium'
},
isDisabled: {
true: 'opacity-100 bg-gray-200 border-none text-gray-400'
}
},
});

export default Button;

Button classes :

"z-0 group relative inline-flex items-center justify-center box-border appearance-none select-none whitespace-nowrap subpixel-antialiased overflow-hidden tap-highlight-transparent data-[pressed=true]:scale-[0.97] outline-none data-[focus-visible=true]:z-10 data-[focus-visible=true]:outline-2 data-[focus-visible=true]:outline-focus data-[focus-visible=true]:outline-offset-2 border-medium bg-transparent px-6 min-w-24 h-12 text-medium gap-3 [&>svg]:max-w-[theme(spacing.8)] transition-transform-colors-opacity motion-reduce:transition-none border-danger text-danger data-[hover=true]:!bg-danger !text-danger-foreground rounded-full font-medium"

issue class : !text-danger-foreground

no effect of text-danger, this class only applied "!text-danger-foreground"

I'm using this :
variant: 'ghost',
color: 'danger',

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

variant: 'ghost',
color: 'danger',

Expected behavior

Screenshot 2024-11-06 120344

Screenshots or Videos

No response

Operating System Version

Windows

Browser

Chrome

Copy link

linear bot commented Nov 6, 2024

@AnYiEE
Copy link
Contributor

AnYiEE commented Nov 6, 2024

@VivekSambath
Copy link
Author

Oh, Thank you

@wingkwong
Copy link
Member

As mentioned above, please wait for the next release or use the canary version if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants